提交 6b8fdfce 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix tsc fail if we have dist/ output directory

上级 6e5491ba
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"lint": "npm run check-node-version && npm run eslint && npm run tslint", "lint": "npm run check-node-version && npm run eslint && npm run tslint",
"nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"", "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
"eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"", "eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
"tslint": "tslint \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && tsc --noEmit", "tslint": "tslint \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && npm run clean && tsc --noEmit",
"shlint": "bash -n bin/*.sh", "shlint": "bash -n bin/*.sh",
"pretest": "npm run clean && npm run lint && npm run dist", "pretest": "npm run clean && npm run lint && npm run dist",
"sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts", "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
, "traceResolution": false , "traceResolution": false
} }
, "exclude": [ , "exclude": [
"node_modules" "node_modules/"
, "dist" , "dist/"
] ]
, "include": [ , "include": [
"bin/*.ts" "bin/*.ts"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册