Skip to content

Commit 23f0d3a

Browse files
committed
Create "precommit" package script, to run tests, lint, format and build sequentially
1 parent 19359da commit 23f0d3a

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
@@ -19,7 +19,8 @@
1919
"test:coverage": "vitest run --coverage.enabled",
2020
"test:watch": "vitest watch",
2121
"storybook": "storybook dev -p 6006",
22-
"build-storybook": "storybook build"
22+
"build-storybook": "storybook build",
23+
"precommit": "npm run test && npm run lint:fix && npm run format && npm run build"
2324
},
2425
"dependencies": {
2526
"@cloudblueconnect/material-svg": "^1.0.43",

0 commit comments

Comments
 (0)