Fixed tsConfig exclude overwrite

This commit is contained in:
Kai Röder 2018-10-18 21:22:47 +02:00
parent cdf8328226
commit 7b1951546e

View File

@ -46,8 +46,8 @@ async function addDependencies(npmOptions) {
function editAngularAppTsConfig() {
const tsConfigJson = getAngularAppTsConfigJson();
if (tsConfigJson) {
const { exclude } = tsConfigJson.compilerOptions;
tsConfigJson.compilerOptions.exclude = [...exclude, '**/*.stories.ts'];
const { exclude } = tsConfigJson;
tsConfigJson.exclude = [...exclude, '**/*.stories.ts'];
writeAngularAppTsConfig(tsConfigJson);
}
}