fix(nest): do not overwrite tsconfig files with undefined in migration (#17783)

This commit is contained in:
Leosvel Pérez Espinosa 2023-06-26 14:47:25 +01:00 committed by GitHub
parent e58cc798a5
commit 9195111d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ export function updateCacheManagerImport(
export function updateTsConfigTarget(tree: Tree, tsConfigPath: string) { export function updateTsConfigTarget(tree: Tree, tsConfigPath: string) {
updateJson(tree, tsConfigPath, (json) => { updateJson(tree, tsConfigPath, (json) => {
if (!json.compilerOptions.target) { if (!json.compilerOptions.target) {
return; return json;
} }
const normalizedTargetName = json.compilerOptions.target.toUpperCase(); const normalizedTargetName = json.compilerOptions.target.toUpperCase();