pyright/build/skipBootstrap.js

10 lines
372 B
JavaScript

// This script exits with a "failure" if this SKIP_LERNA_BOOTSTRAP is set.
// This can be used to write npm script like:
// node ./build/skipBootstrap.js || lerna bootstrap
// Which means "skip lerna bootstrap if SKIP_LERNA_BOOTSTRAP is set".
// This prevents suprious bootstraps in nested lerna repos.
if (!process.env.SKIP_LERNA_BOOTSTRAP) {
process.exit(1);
}