Commit 93b48ef2 by afe1 Committed by GitHub

fix: use pnpm manage package (#4695)

1 parent 860fc15c
...@@ -11,13 +11,10 @@ import { findUpSync } from 'find-up'; ...@@ -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 || '');
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!