Skip to content

Commit

Permalink
Fix clean script (jupyterlab#15854)
Browse files Browse the repository at this point in the history
* Fix clean-packages script

* Make it work with either
  • Loading branch information
krassowski authored Feb 22, 2024
1 parent 9af95ed commit 32fb8c5
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 32fb8c5

Please sign in to comment.