aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 21:58:35 +0800
committerFabio Berger <me@fabioberger.com>2018-07-26 21:58:35 +0800
commita90f434df5718f45b8eb367a8fabde97ee3d0513 (patch)
treec0af9f4fd90f393a97efefa71c7f20c837c7a1fa /packages/monorepo-scripts/src
parent3b005ad47cf73bda5dce582fa657c1d286bc1dce (diff)
downloaddexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.gz
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.bz2
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.lz
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.xz
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.zst
dexon-sol-tools-a90f434df5718f45b8eb367a8fabde97ee3d0513.zip
Split running packages that cannot be run in a node.js script
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r--packages/monorepo-scripts/src/test_installation.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts
index d1f5ce655..bbaf9b056 100644
--- a/packages/monorepo-scripts/src/test_installation.ts
+++ b/packages/monorepo-scripts/src/test_installation.ts
@@ -8,6 +8,14 @@ import * as rimraf from 'rimraf';
import { utils } from './utils/utils';
+// Packages might not be runnable if they are command-line tools or only run in browsers.
+const UNRUNNABLE_PACKAGES = [
+ '@0xproject/abi-gen',
+ '@0xproject/sra-report',
+ '@0xproject/react-shared',
+ '@0xproject/react-docs',
+];
+
(async () => {
const IS_LOCAL_PUBLISH = process.env.IS_LOCAL_PUBLISH === 'true';
const registry = IS_LOCAL_PUBLISH ? 'http://localhost:4873/' : 'https://registry.npmjs.org/';
@@ -19,7 +27,7 @@ import { utils } from './utils/utils';
);
utils.log('Testing packages:');
const installablePackages = _.filter(preInstallablePackages, pkg => {
- return pkg.packageJson.name === '0x.js';
+ return !_.includes(UNRUNNABLE_PACKAGES, pkg.packageJson.name);
});
_.map(installablePackages, pkg => utils.log(`* ${pkg.packageJson.name}`));
for (const installablePackage of installablePackages) {