From 7b2610602b2165c4d75a4926846a5cd43460c0a6 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 11 Jan 2018 08:20:50 -0800 Subject: [PATCH] fix: fix build break and upgrade dependencies - fix build break by newer version of prettier - upgrade tool dependencies - remove the typeof-compare tslint rule as it's default now since TS 2.2 --- packages/build/bin/run-prettier.js | 2 +- packages/build/config/tslint.common.json | 3 +-- packages/build/package.json | 12 ++++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/build/bin/run-prettier.js b/packages/build/bin/run-prettier.js index 10a5541b83af..cd4b6f10fa27 100755 --- a/packages/build/bin/run-prettier.js +++ b/packages/build/bin/run-prettier.js @@ -34,7 +34,7 @@ function run(argv, dryRun) { } args.push(...prettierOpts); - return utils.runCLI('prettier/bin/prettier', args, dryRun); + return utils.runCLI('prettier/bin-prettier', args, dryRun); } module.exports = run; diff --git a/packages/build/config/tslint.common.json b/packages/build/config/tslint.common.json index 2580d16e72cc..b8d46f249da5 100644 --- a/packages/build/config/tslint.common.json +++ b/packages/build/config/tslint.common.json @@ -22,7 +22,6 @@ "no-unused-expression": true, "no-unused-variable": true, "no-var-keyword": true, - "triple-equals": [true, "allow-null-check", "allow-undefined-check"], - "typeof-compare": true + "triple-equals": [true, "allow-null-check", "allow-undefined-check"] } } diff --git a/packages/build/package.json b/packages/build/package.json index ac67811c888e..07820f2dc7fb 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -13,15 +13,15 @@ "license": "MIT", "dependencies": { "@types/mocha": "^2.2.43", - "@types/node": "^8.0.50", + "@types/node": "^8.5.8", "cross-spawn": "^5.1.0", "debug": "^3.1.0", "mocha": "^4.0.0", - "nyc": "^11.3.0", - "prettier": "^1.8.1", + "nyc": "^11.4.1", + "prettier": "^1.10.2", "strong-docs": "^1.6.0", - "tslint": "^5.7.0", - "typescript": "^2.5.3" + "tslint": "^5.9.1", + "typescript": "^2.6.2" }, "bin": { "lb-tsc": "./bin/compile-package.js", @@ -43,6 +43,6 @@ "posttest": "npm run lint" }, "devDependencies": { - "fs-extra": "^4.0.2" + "fs-extra": "^5.0.0" } }