UNPKG

@yolkai/nx-schematics

Version:

Extensible Dev Tools for Monorepos: Schematics

12 lines (11 loc) 927 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const nx_workspace_1 = require("@yolkai/nx-workspace"); exports.default = { description: 'Update npm scripts to use the nx command', run: () => { nx_workspace_1.updateJsonFile('package.json', json => { json.scripts = Object.assign({}, json.scripts, { 'apps:affected': './node_modules/.bin/nx affected apps', 'build:affected': './node_modules/.bin/nx affected build', 'e2e:affected': './node_modules/.bin/nx affected e2e', 'affected:apps': './node_modules/.bin/nx affected apps', 'affected:build': './node_modules/.bin/nx affected build', 'affected:e2e': './node_modules/.bin/nx affected e2e', format: './node_modules/.bin/nx format write', 'format:write': './node_modules/.bin/nx format write', 'format:check': './node_modules/.bin/nx format check', 'nx-migrate': './node_modules/.bin/nx migrate' }); }); } };