fix(build): ignore empty bundle directories (#27491)
These are often left after some file moves.
This commit is contained in:
parent
ae5610f5c1
commit
7447761fb7
|
|
@ -195,8 +195,10 @@ for (const pkg of workspace.packages()) {
|
|||
const bundlesDir = path.join(pkg.path, 'bundles');
|
||||
if (!fs.existsSync(bundlesDir))
|
||||
continue;
|
||||
for (const bundle of fs.readdirSync(bundlesDir))
|
||||
for (const bundle of fs.readdirSync(bundlesDir)) {
|
||||
if (fs.existsSync(path.join(bundlesDir, bundle, 'package.json')))
|
||||
bundles.push(path.join(bundlesDir, bundle));
|
||||
}
|
||||
}
|
||||
|
||||
// Update test runner.
|
||||
|
|
|
|||
Loading…
Reference in a new issue