Skip to content

Commit df3bb26

Browse files
committed
build(precommit): change precomit tests
1 parent 08a2e03 commit df3bb26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
npm run lint
22
npm run sort-colors
3-
npm test
3+
npm run test:precommit

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
"scripts": {
2525
"commit": "git-cz",
2626
"pull-colors": "curl -L 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQube6Y0wHyEtJnjg0eU3N7VseoxVnD4L9uDqvWZdl_tzzrHDVN10IPP7cdFipX8j70atNMLfPCB0Q6/pub?gid=40578722&single=true&output=csv' -o src/colornames.csv",
27-
"test": "npm run build --testonly && npm run build && vitest run",
27+
"test": "npm run test:precommit && npm run build && vitest run",
2828
"test:watch": "vitest",
29+
"test:precommit": "npm run build --testonly",
2930
"build": "node scripts/build.js && npm run prettier",
3031
"prettier": "prettier --write ./dist/*",
3132
"lint": "npm run lint:scripts && npm run lint:markdown",

0 commit comments

Comments
 (0)