aboutsummaryrefslogtreecommitdiffstats
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
parent3b005ad47cf73bda5dce582fa657c1d286bc1dce (diff)
downloaddexon-0x-contracts-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.gz
dexon-0x-contracts-a90f434df5718f45b8eb367a8fabde97ee3d0513.tar.zst
dexon-0x-contracts-a90f434df5718f45b8eb367a8fabde97ee3d0513.zip
Split running packages that cannot be run in a node.js script
-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) {