We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033dc4e commit 7d809bcCopy full SHA for 7d809bc
bin/build.js
@@ -114,6 +114,7 @@ function findClosestPackageJson(startDir) {
114
function findClosestNodeModules(startPath) {
115
const startDir = fs.statSync(startPath).isDirectory() ? startPath : path.dirname(startPath);
116
let currentDir = startDir;
117
+ // eslint-disable-next-line no-constant-condition
118
while (true) {
119
const nodeModulesPath = path.join(currentDir, 'node_modules');
120
if (fs.existsSync(nodeModulesPath))
0 commit comments