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 #3590

Closes #3609
This commit is contained in:
Jeff Cross 2015-08-12 12:06:54 -07:00
parent 7b3cca20d2
commit b5fb05b735
1 changed files with 8 additions and 1 deletions

View File

@ -13,5 +13,12 @@
"rx": "<%= packageJson.dependencies['rx'] %>",
"zone.js": "<%= packageJson.dependencies['zone.js'] %>"
},
"devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>
"devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>,
"typescript": {
"definitions": [
"bundles/typings/angular2/angular2.d.ts",
"bundles/typings/angular2/http.d.ts",
"bundles/typings/angular2/router.d.ts"
]
}
}