Skip to content

Commit b5fb05b

Browse files
committed
feat(npm): add typescript block to package.json
This makes it simple to run the `tsd link` command in a project to automatically include paths to typings files. The definitions also include transitive dependencies of rx.d.ts and es6-promise.d.ts. Closes angular#3590 Closes angular#3609
1 parent 7b3cca2 commit b5fb05b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/angular2/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@
1313
"rx": "<%= packageJson.dependencies['rx'] %>",
1414
"zone.js": "<%= packageJson.dependencies['zone.js'] %>"
1515
},
16-
"devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>
16+
"devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>,
17+
"typescript": {
18+
"definitions": [
19+
"bundles/typings/angular2/angular2.d.ts",
20+
"bundles/typings/angular2/http.d.ts",
21+
"bundles/typings/angular2/router.d.ts"
22+
]
23+
}
1724
}

0 commit comments

Comments
 (0)