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

12 lines (11 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addPathToTsConfig = addPathToTsConfig; const devkit_1 = require("@nx/devkit"); const js_1 = require("@nx/js"); function addPathToTsConfig(tree, { remoteName, moduleName, pathToFile }) { const rootTsConfig = (0, devkit_1.readJson)(tree, (0, js_1.getRootTsConfigPathInTree)(tree)); if (!rootTsConfig.compilerOptions?.paths[`${remoteName}/${moduleName}`]) { (0, js_1.addTsConfigPath)(tree, `${remoteName}/${moduleName}`, [pathToFile]); } }