fix(core): migration host only handled workspace.json when removing jest's tsconfig
This commit is contained in:
parent
71b93dfb60
commit
f19333e805
@ -403,6 +403,7 @@ export class NxScopedHostForMigrations extends NxScopedHost {
|
|||||||
write(path: Path, content: FileBuffer): Observable<void> {
|
write(path: Path, content: FileBuffer): Observable<void> {
|
||||||
return this.hasWorkspaceJson().pipe(
|
return this.hasWorkspaceJson().pipe(
|
||||||
concatMap((hasWorkspace) => {
|
concatMap((hasWorkspace) => {
|
||||||
|
if (this.isWorkspaceConfig(path)) {
|
||||||
if (
|
if (
|
||||||
hasWorkspace &&
|
hasWorkspace &&
|
||||||
(path == '/angular.json' || path == 'angular.json')
|
(path == '/angular.json' || path == 'angular.json')
|
||||||
@ -411,6 +412,9 @@ export class NxScopedHostForMigrations extends NxScopedHost {
|
|||||||
'/workspace.json' as any,
|
'/workspace.json' as any,
|
||||||
processConfigWhenWriting(content)
|
processConfigWhenWriting(content)
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
return super.write(path as any, processConfigWhenWriting(content));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return super.write(path as any, content);
|
return super.write(path as any, content);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user