fix(nest): do not overwrite tsconfig files with undefined in migration (#17783)
This commit is contained in:
parent
e58cc798a5
commit
9195111d74
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user