UNPKG

@nxext/stencil

Version:

Nx plugin for stenciljs

18 lines 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateTsConfig = void 0; const devkit_1 = require("@nrwl/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}`] = [ `dist/${options.projectRoot}` ]; delete c.paths[`${options.importPath}/loader`]; c.paths[`${options.importPath}/loader`] = [`dist/${options.projectRoot}/loader`]; return json; }); } exports.updateTsConfig = updateTsConfig; //# sourceMappingURL=update-tsconfig.js.map