Skip to content

Commit

Permalink
Make it work with either
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski authored Feb 22, 2024
1 parent 6978f80 commit 45dbfb0
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;
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 45dbfb0

Please sign in to comment.