Skip to content

Commit

Permalink
fix(@schematics/angular): handle existence of un-referenced library p…
Browse files Browse the repository at this point in the history
…rod tsconfig
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed Aug 16, 2019
1 parent 78b408f commit f7f5f5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,7 @@ function createTsConfig(tree: Tree, tsConfigPath: string) {
},
};

tree.create(tsConfigPath, JSON.stringify(tsConfigContent, undefined, 2));
if (!tree.exists(tsConfigPath)) {
tree.create(tsConfigPath, JSON.stringify(tsConfigContent, undefined, 2));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ describe('Migration to version 9', () => {
tree,
)
.toPromise();

tree.delete(libProdTsConfig);
});

it(`should add 'tsConfig' option in production when configurations doesn't exists`, async () => {
Expand Down

0 comments on commit f7f5f5b

Please sign in to comment.