From e320b8bb197a674eed47a42203136b73d08ec5a0 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Mon, 9 Jan 2017 13:25:23 +0200 Subject: [PATCH] feat: add support for tsc@2.1 and ng@2.4.2 --- postinstall.js | 6 +++--- tsconfig.aot.json.template | 31 +++++++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/postinstall.js b/postinstall.js index 31069897..02382618 100644 --- a/postinstall.js +++ b/postinstall.js @@ -53,10 +53,10 @@ configureDevDependencies(packageJson, function (add) { add("extract-text-webpack-plugin", "~2.0.0-beta.4"); if (isAngular) { - add("@angular/compiler-cli", "2.3.1"); + add("@angular/compiler-cli", "2.4.3"); add("@ngtools/webpack", "1.2.1"); - add("typescript", "~2.0.10"); - add("htmlparser2", "^3.9.2"); + add("typescript", "^2.0.10"); + add("htmlparser2", "~3.9.2"); } else { add("awesome-typescript-loader", "~3.0.0-beta.9"); } diff --git a/tsconfig.aot.json.template b/tsconfig.aot.json.template index a68b6e39..af686844 100644 --- a/tsconfig.aot.json.template +++ b/tsconfig.aot.json.template @@ -9,8 +9,35 @@ "removeComments": false, "noImplicitAny": false, "suppressImplicitAnyIndexErrors": true, - "types": [] - }, + "types": [], + "baseUrl": ".", + "paths": { + "ui/*": ["node_modules/tns-core-modules/ui/*"], + "platform": ["node_modules/tns-core-modules/platform"], + "image-source": ["node_modules/tns-core-modules/image-source"], + "xml": ["node_modules/tns-core-modules/xml"], + "xhr": ["node_modules/tns-core-modules/xhr"], + "text": ["node_modules/tns-core-modules/text"], + "data": ["node_modules/tns-core-modules/data"], + "fetch": ["node_modules/tns-core-modules/fetch"], + "trace": ["node_modules/tns-core-modules/trace"], + "fps-meter": ["node_modules/tns-core-modules/fps-meter"], + "color": ["node_modules/tns-core-modules/color"], + "application-settings": ["node_modules/tns-core-modules/application-settings"], + "http": ["node_modules/tns-core-modules/http"], + "camera": ["node_modules/tns-core-modules/camera"], + "console": ["node_modules/tns-core-modules/console"], + "timer": ["node_modules/tns-core-modules/timer"], + "utils": ["node_modules/tns-core-modules/utils"], + "location": ["node_modules/tns-core-modules/location"], + "file-system": ["node_modules/tns-core-modules/file-system"], + "application": ["node_modules/tns-core-modules/application"], + "image-asset": ["node_modules/tns-core-modules/image-asset"], + "connectivity": ["node_modules/tns-core-modules/connectivity"], + "globals": ["node_modules/tns-core-modules/globals"] + + } + }, "exclude": [ "node_modules", "platforms"