pyright/build/skipBootstrap.js
2023-01-04 06:54:43 -07:00

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 spurious bootstraps in nested lerna repos.
if (!process.env.SKIP_LERNA_BOOTSTRAP) {
process.exit(1);
}