afe1
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
7 deletions
-
internal/node-utils/src/monorepo.ts
|
|
|
@ -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 || ''); |
|
|
|
} |
|
|
|
|
|
|
|
|