Skip to content

Commit

Permalink
fix(@angular/cli): fix TS2.1 typeroots (angular#5251)
Browse files Browse the repository at this point in the history
TS-Node with TypeScript 2.1+ does not infer `typeRoots`, so we need to list them explicitely in the root tsconfig.

Issue for TS-Node: TypeStrong/ts-node#283

Fix angular#5082
  • Loading branch information
filipesilva authored and Zhicheng Wang committed Mar 16, 2017
1 parent fed89e7 commit f84e1f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/documentation/stories/rc-update.md
Expand Up @@ -273,6 +273,9 @@ There is an additional root-level `tsconfig.json` that is used for IDE integrati
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
Expand Down
3 changes: 3 additions & 0 deletions packages/@angular/cli/blueprints/ng/files/tsconfig.json
Expand Up @@ -8,6 +8,9 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
Expand Down

0 comments on commit f84e1f1

Please sign in to comment.