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

fix(tslint): clean before linting for output file write to dist/

上级 d3e5c7da
......@@ -24,7 +24,7 @@
"doctor": "npm run check-node-version && ts-node bin/doctor",
"clean": "shx rm -fr dist/*",
"check-node-version": "check-node-version --node \">= 6.9\"",
"lint": "npm run check-node-version && npm run eslint && npm run tslint",
"lint": "npm run clean && 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\"",
"eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
"tslint": "tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && npm run clean && tsc --noEmit",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册