aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/monorepo-scripts/src/utils/utils.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/utils/utils.ts b/packages/monorepo-scripts/src/utils/utils.ts
index f04b9b671..862656fbf 100644
--- a/packages/monorepo-scripts/src/utils/utils.ts
+++ b/packages/monorepo-scripts/src/utils/utils.ts
@@ -20,7 +20,9 @@ export const utils = {
}
const packages = [];
for (const workspace of rootPackageJson.workspaces) {
- const workspacePath = workspace.replace('*', '');
+ // HACK: Remove allowed wildcards from workspace entries.
+ // This might be entirely comprehensive.
+ const workspacePath = workspace.replace('*', '').replace('**/*', '');
const subpackageNames = fs.readdirSync(`${rootDir}/${workspacePath}`);
for (const subpackageName of subpackageNames) {
if (_.startsWith(subpackageName, '.')) {