Skip to content

Commit

Permalink
Backport PR #15854: Fix clean script (#15858)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and krassowski committed Feb 23, 2024
1 parent d6af5af commit 24ed1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildutils/src/clean-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exitOnUncaughtException();
// Get all of the packages.
const basePath = path.resolve('.');
const baseConfig = readJSONFile(path.join(basePath, 'package.json'));
const packageConfig = baseConfig.workspaces.packages;
const packageConfig = baseConfig.workspaces.packages ?? baseConfig.workspaces;
const skipSource = process.argv.indexOf('packages') === -1;
const skipExamples = process.argv.indexOf('examples') === -1;

Expand Down

0 comments on commit 24ed1d2

Please sign in to comment.