UNPKG

@nx/nest

Version:

The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.

22 lines (21 loc) 821 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateTsConfig = updateTsConfig; const devkit_1 = require("@nx/devkit"); function updateTsConfig(tree, options) { const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName); return (0, devkit_1.updateJson)(tree, `${project.root}/tsconfig.lib.json`, (json) => { json.compilerOptions.target = options.target; if (options.strict) { json.compilerOptions = { ...json.compilerOptions, strictNullChecks: true, noImplicitAny: true, strictBindCallApply: true, forceConsistentCasingInFileNames: true, noFallthroughCasesInSwitch: true, }; } return json; }); }