From b5fb05b735204c7d4a8ed29f0c94d64aa0f9c96b Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Wed, 12 Aug 2015 12:06:54 -0700 Subject: [PATCH] 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 --- modules/angular2/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/angular2/package.json b/modules/angular2/package.json index 731c5233b1..7cd2592aaf 100644 --- a/modules/angular2/package.json +++ b/modules/angular2/package.json @@ -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" + ] + } }