UNPKG

@nrwl/schematics

Version:

Extensible Dev Tools for Monorepos: Schematics

12 lines (11 loc) 453 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const workspace_1 = require("@nrwl/workspace"); exports.default = { description: 'Add a command to generate workspace-specific schematics', run: () => { workspace_1.updateJsonFile('package.json', json => { json.scripts = Object.assign({}, json.scripts, { 'workspace-schematic': './node_modules/.bin/nx workspace-schematic' }); }); } };