From a4c1a784ede9aa47cdb747c792cda1da2b69258b Mon Sep 17 00:00:00 2001 From: Michael Mrowetz Date: Thu, 9 Mar 2017 17:39:51 +0900 Subject: [PATCH] fix build for new node typings --- build-utils/grunt-config/browserify.js | 4 +++- package.json | 5 ++--- tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build-utils/grunt-config/browserify.js b/build-utils/grunt-config/browserify.js index fd18de65..4de76d15 100644 --- a/build-utils/grunt-config/browserify.js +++ b/build-utils/grunt-config/browserify.js @@ -1,6 +1,8 @@ module.exports = { options: { - plugin: [['tsify']], + plugin: [['tsify', { + 'target': 'es5' + }]], banner: "<%= banner %>", browserifyOptions: { standalone: "perfCascade" diff --git a/package.json b/package.json index 5f2bdd50..4a86b014 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "types": "./index.d.ts", "license": "MIT", "devDependencies": { - "@types/grunt": "^0.4.21", "conventional-changelog": "^1.1.0", "grunt": "^1.0.1", "grunt-banner": "^0.6.0", @@ -41,7 +40,7 @@ "grunt-contrib-clean": "^1.0.0", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-copy": "^1.0.0", - "grunt-contrib-uglify": "^2.1.0", + "grunt-contrib-uglify": "^2.2.0", "grunt-contrib-watch": "^1.0.0", "grunt-gh-pages": "^2.0.0", "grunt-run": "^0.6.0", @@ -49,7 +48,7 @@ "live-server": "^1.2.0", "load-grunt-config": "^0.19.2", "tsify": "^3.0.1", - "tslint": "^4.4.2", + "tslint": "^4.5.1", "typescript": "^2.2.1" } } diff --git a/tsconfig.json b/tsconfig.json index 780af7c9..43e2cde3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES5", + "target": "ES6", "module": "commonjs", "moduleResolution": "node", "sourceMap": true,