@nxext/stencil
Version:
Nx plugin for stenciljs
13 lines • 515 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateTsConfig = updateTsConfig;
const devkit_1 = require("@nx/devkit");
function updateTsConfig(host, options) {
(0, devkit_1.updateJson)(host, 'tsconfig.base.json', (json) => {
const c = json.compilerOptions;
delete c.paths[`${options.importPath}`];
c.paths[`${options.importPath}`] = [`${options.projectRoot}/src/index.ts`];
return json;
});
}
//# sourceMappingURL=update-tsconfig.js.map