UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

17 lines (16 loc) 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available"); const json_1 = require("../../generators/utils/json"); async function default_1(tree) { (0, json_1.updateJson)(tree, 'package.json', (json) => { for (const deps of [json.dependencies, json.devDependencies]) { if (deps) { delete deps['@nrwl/cli']; } } return json; }); await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree); }