Skip to content

Commit

Permalink
feat(npm): add typescript block to package.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jeffbcross committed Aug 12, 2015
1 parent f8c48f9 commit a4079fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/angular2/package.json
Expand Up @@ -13,5 +13,14 @@
"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",
"bundles/typings/es6-promise/es6-promise.d.ts",
"bundles/typings/rx/rx.d.ts"
]
}
}

0 comments on commit a4079fa

Please sign in to comment.