diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-19 22:32:03 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-19 22:32:03 +0800 |
commit | f9c4d0925ea18290c6a578b2d42aa9d41c1f680f (patch) | |
tree | 515cffca410991d201a70e175848e04ad9bb3663 /packages/monorepo-scripts/src | |
parent | 1df9370bc21e93267b5432668967118d7001abf2 (diff) | |
download | dexon-sol-tools-f9c4d0925ea18290c6a578b2d42aa9d41c1f680f.tar.gz dexon-sol-tools-f9c4d0925ea18290c6a578b2d42aa9d41c1f680f.tar.zst dexon-sol-tools-f9c4d0925ea18290c6a578b2d42aa9d41c1f680f.zip |
Add additional pattern removal and added HACK comment
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r-- | packages/monorepo-scripts/src/utils/utils.ts | 4 |
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, '.')) { |