From ca45972e9e8b07a2ad36299f47533eaba517f1f7 Mon Sep 17 00:00:00 2001 From: TsvetanMilanov Date: Tue, 10 Jan 2017 11:21:22 +0200 Subject: [PATCH] Update TypeScript to 2.1 TypeScript 2.0 does not add "use strict"; in files which just declare class and does not export it. This breaks Node 4 because of the class keyword. --- lib/common | 2 +- package.json | 4 ++-- tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/common b/lib/common index e7f82c23df..9b2d88f4b2 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit e7f82c23df45fc53c88945f23f2fd74e10c21797 +Subproject commit 9b2d88f4b23247e601fccb35be45c411ea3ddf87 diff --git a/package.json b/package.json index e53caa670f..111cce13ea 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "grunt-contrib-copy": "1.0.0", "grunt-contrib-watch": "1.0.0", "grunt-shell": "1.3.0", - "grunt-ts": "6.0.0-beta.3", + "grunt-ts": "6.0.0-beta.6", "grunt-tslint": "3.3.0", "istanbul": "0.4.5", "mocha": "3.1.2", @@ -95,7 +95,7 @@ "mocha-typescript": "^1.0.4", "should": "7.0.2", "tslint": "3.15.1", - "typescript": "2.0.7" + "typescript": "2.1.4" }, "license": "Apache-2.0", "engines": { diff --git a/tsconfig.json b/tsconfig.json index d4c2f54f5b..1672106f34 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "declaration": false, "removeComments": false, "noImplicitAny": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "alwaysStrict": true }, "exclude": [ "node_modules",