UNPKG

@yolkai/nx-schematics

Version:

Extensible Dev Tools for Monorepos: Schematics

15 lines (14 loc) 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const nx_workspace_1 = require("@yolkai/nx-workspace"); exports.default = { description: 'Add update, update:skip, update:check scripts', run: () => { nx_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'; } }); } };