fix: use pnpm manage package (#4695)
parent
860fc15ce6
commit
93b48ef244
|
@ -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 || '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue