From f9c4d0925ea18290c6a578b2d42aa9d41c1f680f Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 19 Jul 2018 16:32:03 +0200 Subject: Add additional pattern removal and added HACK comment --- packages/monorepo-scripts/src/utils/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') 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, '.')) { -- cgit