This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/esm/lib/find-root.js
2025-01-11 09:54:09 +03:00

18 lines
445 B
JavaScript

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