Skip to content

Commit 56a97c1

Browse files
committed
build: add support for yarn workspace in scripts
1 parent 2c85850 commit 56a97c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/packages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function _findAllPackageJson(dir: string, exclude: RegExp): string[] {
136136
return;
137137
} else if (fileName == 'package.json') {
138138
result.push(p);
139-
} else if (fs.statSync(p).isDirectory()) {
139+
} else if (fs.statSync(p).isDirectory() && fileName != 'node_modules') {
140140
result.push(..._findAllPackageJson(p, exclude));
141141
}
142142
});

0 commit comments

Comments
 (0)