Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
19
node_modules/next/dist/esm/lib/find-root.js
generated
vendored
Normal file
19
node_modules/next/dist/esm/lib/find-root.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { dirname } from 'path';
|
||||
import findUp from 'next/dist/compiled/find-up';
|
||||
export function findRootLockFile(cwd) {
|
||||
return findUp.sync([
|
||||
'pnpm-lock.yaml',
|
||||
'package-lock.json',
|
||||
'yarn.lock',
|
||||
'bun.lock',
|
||||
'bun.lockb'
|
||||
], {
|
||||
cwd
|
||||
});
|
||||
}
|
||||
export function findRootDir(cwd) {
|
||||
const lockFile = findRootLockFile(cwd);
|
||||
return lockFile ? dirname(lockFile) : undefined;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=find-root.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue