Skip to content

Commit 7b14ca2

Browse files
committed
add tslint scripts
1 parent b804f4c commit 7b14ca2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
"test": "karma start --single-run",
99
"mocha": "mocha test/**/*.test.ts --require ts-node/register",
1010
"autoformat": "prettier --config .prettierrc --write {src,test}/**/*.ts",
11-
"tslint-check": "tslint-config-prettier-check ./tslint.json",
11+
"tslint-check:src": "tslint-config-prettier-check ./tslint.json",
12+
"tslint-check:test": "tslint-config-prettier-check ./tslint.test.json",
13+
"tslint:src": "tslint --project tsconfig.json",
14+
"tslint:test": "tslint --config tslint.test.json --project tsconfig.test.json",
15+
"tslint": "npm run tslint-check:src && npm run tslint-check:test && npm run tslint:src && npm run tslint:test",
1216
"clean-up": "rimraf .nyc_output && rimraf coverage && rimraf lib && rimraf dev",
1317
"compile:src": "tsc -d",
1418
"compile:test": "tsc -p tsconfig.test.json -d",
1519
"prepare": "npm run clean-up && npm run compile:src",
1620
"prepublishOnly": "publish-please guard",
17-
"publish-please": "npm run autoformat && npm run clean-up && npm run test && publish-please"
21+
"publish-please": "npm run tslint && npm run autoformat && npm run clean-up && npm run test && publish-please"
1822
},
1923
"repository": {
2024
"type": "git",

0 commit comments

Comments
 (0)