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

16 lines (15 loc) 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addPathMapping = addPathMapping; const devkit_1 = require("@nx/devkit"); const js_1 = require("@nx/js"); function addPathMapping(tree, options) { (0, devkit_1.updateJson)(tree, (0, js_1.getRootTsConfigPathInTree)(tree), (json) => { const c = json.compilerOptions; c.paths = c.paths || {}; c.paths[options.secondaryEntryPoint] = [ `${options.libraryProject.root}/${options.name}/src/index.ts`, ]; return json; }); }