Skip to content

Commit

Permalink
feat(@schematics/angular): add node types to universal tsconfig (#15594)
Browse files Browse the repository at this point in the history
By default we disable types inclusion in tsconfig.app.json which this tsconfig extends from
  • Loading branch information
alan-agius4 authored and mgechev committed Sep 13, 2019
1 parent 5e72b30 commit 63248e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"extends": "./<%= tsConfigExtends %>",
"compilerOptions": {
"outDir": "<%= outDir %>-server",
"module": "commonjs"
"module": "commonjs",
"types": [
"node"
]
},
"files": [
"src/<%= stripTsExtension(main) %>.ts"
Expand Down
2 changes: 2 additions & 0 deletions packages/schematics/angular/universal/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe('Universal Schematic', () => {
compilerOptions: {
outDir: './out-tsc/app-server',
module: 'commonjs',
types: ['node'],
},
files: [
'src/main.server.ts',
Expand All @@ -115,6 +116,7 @@ describe('Universal Schematic', () => {
compilerOptions: {
outDir: '../../out-tsc/app-server',
module: 'commonjs',
types: ['node'],
},
files: [
'src/main.server.ts',
Expand Down

0 comments on commit 63248e3

Please sign in to comment.