Skip to content

Commit fe580b6

Browse files
committed
run formatting check as part of ci
1 parent aebe91e commit fe580b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
"build:server": "tsc -d",
1717
"clean": "shx rm -rf dist && mkdir dist",
1818
"format": "prettier \"**/*.ts\" --write",
19+
"format-check": "prettier \"**/*.ts\" --check",
1920
"lint": "eslint src/*.ts test/*.ts",
2021
"tdd": "concurrently -r -p '' -k 'npm run watch' 'npm run watch:test'",
2122
"test": "npm run pre-test && ava --timeout=300s --verbose",
2223
"stresstest": "seq 1 10 | xargs -I{} npm test",
2324
"prepublishOnly": "npm test",
24-
"pre-test": "npm run clean && npm run build:server",
25+
"pre-test": "npm run clean && npm run format-check && npm run build:server",
2526
"watch": "tsc -w",
2627
"watch:test": "ava -w"
2728
},

0 commit comments

Comments
 (0)