@nx/angular
Version:
16 lines (15 loc) • 560 B
JavaScript
;
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;
});
}