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';
* @param cwd
*/
function findMonorepoRoot(cwd: string = process.cwd()) {
const lockFile = findUpSync(
['pnpm-lock.yaml', 'yarn.lock', 'package-lock.json'],
{
cwd,
type: 'file',
},
);
const lockFile = findUpSync('pnpm-lock.yaml', {
cwd,
type: 'file',
});
return dirname(lockFile || '');
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!