Make dry-run configurable from top-level package.json

This commit is contained in:
Fabio Berger
2018-04-02 05:10:27 +09:00
parent c6f85464ce
commit d187a31e38
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ import { constants } from './constants';
import { Changelog, Changes, SemVerIndex, UpdatedPackage } from './types';
import { utils } from './utils';
const IS_DRY_RUN = false;
const IS_DRY_RUN = process.env.IS_DRY_RUN === 'false';
const TODAYS_TIMESTAMP = moment().unix();
const LERNA_EXECUTABLE = './node_modules/lerna/bin/lerna.js';
const semverNameToIndex: { [semver: string]: number } = {