Exclude unready packages from install step as well
This commit is contained in:
parent
57028069c0
commit
3832c66ad0
@ -12,11 +12,12 @@ import { Changelog, Package } from './types';
|
||||
import { utils } from './utils/utils';
|
||||
|
||||
// Packages might not be runnable if they are command-line tools or only run in browsers.
|
||||
const UNRUNNABLE_PACKAGES = ['@0x/abi-gen'];
|
||||
// HACK(fabio): Temporarily adding '@0x/contracts-coordinator', '@0x/contracts-extensions' since they
|
||||
// aren't working in the V3 branch yet.
|
||||
// TODO(dorothy-zbornak): Remove '@0x/contracts-coordinator', '@0x/contracts-extensions' after updating
|
||||
// these packages for 3.0.
|
||||
const UNRUNNABLE_PACKAGES = ['@0x/abi-gen', '@0x/contracts-coordinator', '@0x/contracts-extensions'];
|
||||
const UNINSTALLABLE_PACKAGES = ['@0x/contracts-coordinator', '@0x/contracts-extensions'];
|
||||
|
||||
const mkdirpAsync = promisify(mkdirp);
|
||||
const rimrafAsync = promisify(rimraf);
|
||||
@ -57,7 +58,12 @@ function logIfDefined(x: any): void {
|
||||
const packages = utils.getTopologicallySortedPackages(monorepoRootPath);
|
||||
const installablePackages = _.filter(
|
||||
packages,
|
||||
pkg => !pkg.packageJson.private && pkg.packageJson.main !== undefined && pkg.packageJson.main.endsWith('.js'),
|
||||
pkg => {
|
||||
return !pkg.packageJson.private &&
|
||||
pkg.packageJson.main !== undefined &&
|
||||
pkg.packageJson.main.endsWith('.js') &&
|
||||
!UNINSTALLABLE_PACKAGES.includes(pkg.packageJson.name);
|
||||
},
|
||||
);
|
||||
const CHUNK_SIZE = 15;
|
||||
const chunkedInstallablePackages = _.chunk(installablePackages, CHUNK_SIZE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user