fix: use pnpm manage package (#4695)
parent
860fc15ce6
commit
93b48ef244
|
@ -11,13 +11,10 @@ import { findUpSync } from 'find-up';
|
||||||
* @param cwd
|
* @param cwd
|
||||||
*/
|
*/
|
||||||
function findMonorepoRoot(cwd: string = process.cwd()) {
|
function findMonorepoRoot(cwd: string = process.cwd()) {
|
||||||
const lockFile = findUpSync(
|
const lockFile = findUpSync('pnpm-lock.yaml', {
|
||||||
['pnpm-lock.yaml', 'yarn.lock', 'package-lock.json'],
|
cwd,
|
||||||
{
|
type: 'file',
|
||||||
cwd,
|
});
|
||||||
type: 'file',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
return dirname(lockFile || '');
|
return dirname(lockFile || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue