From a90f434df5718f45b8eb367a8fabde97ee3d0513 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 26 Jul 2018 15:58:35 +0200 Subject: Split running packages that cannot be run in a node.js script --- packages/monorepo-scripts/src/test_installation.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'packages/monorepo-scripts/src/test_installation.ts') 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) { -- cgit v1.2.3