UNPKG

@nx/angular

Version:

The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypre

24 lines (23 loc) 804 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.angularCliVersion = void 0; exports.default = default_1; const devkit_1 = require("@nx/devkit"); exports.angularCliVersion = '~19.0.0'; async function default_1(tree) { let shouldFormat = false; (0, devkit_1.updateJson)(tree, 'package.json', (json) => { if (json.devDependencies?.['@angular/cli']) { json.devDependencies['@angular/cli'] = exports.angularCliVersion; shouldFormat = true; } else if (json.dependencies?.['@angular/cli']) { json.dependencies['@angular/cli'] = exports.angularCliVersion; shouldFormat = true; } return json; }); if (shouldFormat) { await (0, devkit_1.formatFiles)(tree); } }