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

27 lines (26 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractTsConfigBase = void 0; exports.updateProjectRootTsConfig = updateProjectRootTsConfig; const devkit_1 = require("@nx/devkit"); const js_1 = require("@nx/js"); var js_2 = require("@nx/js"); Object.defineProperty(exports, "extractTsConfigBase", { enumerable: true, get: function () { return js_2.extractTsConfigBase; } }); function updateProjectRootTsConfig(host, projectRoot, relativePathToRootTsConfig, isRootProject) { (0, devkit_1.updateJson)(host, `${projectRoot}/tsconfig.json`, (json) => { if (isRootProject) { // inline tsconfig.base.json into the project json.compileOnSave = false; json.compilerOptions = { ...js_1.tsConfigBaseOptions, ...json.compilerOptions, }; json.exclude = ['node_modules', 'tmp']; delete json.extends; } else { json.extends = relativePathToRootTsConfig; } return json; }); }