From 45dbfb0a0c5106c7029eb1c91095960958f9b61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Thu, 22 Feb 2024 11:57:51 +0000 Subject: [PATCH] Make it work with either --- buildutils/src/clean-packages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildutils/src/clean-packages.ts b/buildutils/src/clean-packages.ts index 371d20118cf1..d5927b0621e0 100644 --- a/buildutils/src/clean-packages.ts +++ b/buildutils/src/clean-packages.ts @@ -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;