ソースを参照

Merge pull request #16957 from gkjohnson/add-tsc-linting

Catch more d.ts error with the Typescript Compiler
Michael Herzog 6 年 前
コミット
216fbad4ae
1 ファイル変更1 行追加1 行削除
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -50,7 +50,7 @@
     "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
     "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
     "start": "npm run dev",
-    "lint": "eslint src --ext js --ext ts",
+    "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
     "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
     "travis": "npm run lint && npm test"
   },