Skip to content

Commit

Permalink
chore: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wangYP committed Aug 11, 2021
1 parent 13f2371 commit 3cf76a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"delCon": "del-specify-code -p ./src/test.js -r /console\\.log\\(.*\\)/g",
"delSpa": "del-specify-code",
"dev": "tsc --incremental && tnpm run delSpa",
"delLocal": "./dist/index.js -p ./src/test.js -r /console\\.log\\(.*\\)/g",
"dev": "tsc --incremental && tnpm run delLocal",
"build": "rimraf dist && tsc"
},
"files": [
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function listFile(dir: string) {
}
});
return list;
}
};
// TODO console颜色需要改变 错误为红色 正确为绿色;
// TODO 错误也需要console 而且相应的颜色 也需要变
const delMatch = (filePath: string[], regParam: string) => {
try {
filePath.forEach((ele) => {
Expand Down

0 comments on commit 3cf76a5

Please sign in to comment.