mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
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))
|
||||
bundles.push(path.join(bundlesDir, bundle));
|
||||
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 New Issue
Block a user