Skip to content

Commit 30fa30b

Browse files
authored
refactor(add-ns): remove include property from web tsconfig (#230)
The `include` property overrides the `files` property, which is needed for the AoT compilation.
1 parent 3cead3c commit 30fa30b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/add-ns/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const modifyWebTsconfig = (tree: Tree, context: SchematicContext) => {
257257

258258
const srcDir = projectSettings.sourceRoot;
259259

260-
// files
260+
// add list of entry "files"
261261
const defaultFiles = [
262262
`${srcDir}/main.ts`,
263263
`${srcDir}/polyfills.ts`,
@@ -266,6 +266,10 @@ const modifyWebTsconfig = (tree: Tree, context: SchematicContext) => {
266266
tsConfig.files = tsConfig.files || [];
267267
tsConfig.files.push(...defaultFiles);
268268

269+
// remove "include" property
270+
// because it overrides "files"
271+
delete tsConfig.include;
272+
269273
// paths
270274
const webPaths = {
271275
'@src/*': [

0 commit comments

Comments
 (0)