Initial boiler plate project
This commit is contained in:
18
node_modules/next/dist/esm/lib/find-root.js
generated
vendored
Normal file
18
node_modules/next/dist/esm/lib/find-root.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
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.lockb"
|
||||
], {
|
||||
cwd
|
||||
});
|
||||
}
|
||||
export function findRootDir(cwd) {
|
||||
const lockFile = findRootLockFile(cwd);
|
||||
return lockFile ? dirname(lockFile) : undefined;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=find-root.js.map
|
||||
Reference in New Issue
Block a user