@nrwl/schematics
Version:
15 lines (14 loc) • 875 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const workspace_1 = require("@nrwl/workspace");
exports.default = {
description: 'Add update, update:skip, update:check scripts',
run: () => {
workspace_1.updateJsonFile('package.json', json => {
json.scripts = Object.assign({}, json.scripts, { update: './node_modules/.bin/nx update', 'update:check': './node_modules/.bin/nx update check', 'update:skip': './node_modules/.bin/nx update skip', 'nx-migrate': undefined, 'nx-migrate:check': undefined, 'nx-migrate:skip': undefined, 'apps:affected': undefined, 'build:affected': undefined, 'e2e:affected': undefined });
if (json.scripts.postinstall === './node_modules/.bin/nx migrate check') {
json.scripts.postinstall = './node_modules/.bin/nx postinstall';
}
});
}
};