diff --git a/projects/npm-tools/packages/npm-scripts/src/utils/findRoot.js b/projects/npm-tools/packages/npm-scripts/src/utils/findRoot.js index 1a30258de..c892ad4f2 100644 --- a/projects/npm-tools/packages/npm-scripts/src/utils/findRoot.js +++ b/projects/npm-tools/packages/npm-scripts/src/utils/findRoot.js @@ -24,7 +24,10 @@ function findRoot() { let directory = process.cwd(); while (directory) { - if (fs.existsSync(path.join(directory, 'yarn.lock'))) { + if ( + fs.existsSync(path.join(directory, 'yarn.lock')) || + fs.existsSync(path.join(directory, 'package-lock.json')) + ) { const basename = path.basename(directory); if (basename === 'modules') {