From f1f5b45361fcaf3cbe525d41cca0f3f6998b47f9 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 10 Feb 2016 14:12:02 -0800 Subject: [PATCH] feat(typings): install es6-shim typings to a location users can reference. This makes the upgrade to beta.4 as simple as adding one reference tag, only when --target=es5 Implements option 3 from https://docs.google.com/document/d/1vgepQPkuHS4P3rzANQpoMIDIXe0Rl9Z2QyTtb8dpMoI/edit --- modules/angular2/package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/angular2/package.json b/modules/angular2/package.json index e4f2d5afd5..07ef50ee34 100644 --- a/modules/angular2/package.json +++ b/modules/angular2/package.json @@ -8,6 +8,12 @@ "license": "<%= packageJson.license %>", "repository": <%= JSON.stringify(packageJson.repository) %>, "devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>, + "dependencies": { + "typings": "0.6.6" + }, + "scripts": { + "postinstall": "typings install --ambient --name es6-promise github:DefinitelyTyped/DefinitelyTyped/es6-promise/es6-promise.d.ts#830e8ebd9ef137d039d5c7ede24a421f08595f83; typings install --ambient --name es6-collections github:DefinitelyTyped/DefinitelyTyped/es6-collections/es6-collections.d.ts#9f97e2a2bc1f502550c9b4fcaad1c48df5521d37" + }, "peerDependencies": { "es6-promise": "<%= packageJson.dependencies['es6-promise'] %>", "es6-shim": "<%= packageJson.dependencies['es6-shim'] %>",