Skip to content

Commit 81b8a36

Browse files
committed
build: add support for yarn workspace in scripts
1 parent 2cadf69 commit 81b8a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function _findAllPackageJson(dir: string, exclude: RegExp): string[] {
131131
return;
132132
} else if (fileName == 'package.json') {
133133
result.push(p);
134-
} else if (fs.statSync(p).isDirectory()) {
134+
} else if (fs.statSync(p).isDirectory() && fileName != 'node_modules') {
135135
result.push(..._findAllPackageJson(p, exclude));
136136
}
137137
});

0 commit comments

Comments
 (0)