Skip to content

Commit 3915ec9

Browse files
Add git status to precommit script
1 parent a596b70 commit 3915ec9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@
2727
"build": "concurrently pnpm:build:cjs pnpm:build:esm",
2828
"docs": "rimraf docs && typedoc --options typedoc.json --readme none",
2929
"lint": "eslint src/**/*.ts",
30-
"precommit": "concurrently pnpm:lint pnpm:test && pnpm run build",
31-
"prepublishOnly": "pnpm run build && pnpm test",
30+
"precommit": "concurrently pnpm:lint pnpm:test && pnpm run build && pnpm run validate && git status -s",
31+
"prepublishOnly": "pnpm run build && pnpm run validate && pnpm test",
3232
"preversion": "concurrently pnpm:lint pnpm:test",
3333
"postversion": "git push && git push --tags && pnpm run docs && git add -A && git commit -m \"Updated docs.\" docs && git push",
34-
"test": "mocha -r ts-node/register tests/**/*.ts"
34+
"test": "mocha -r ts-node/register tests/**/*.ts",
35+
"validate": "node ./.build/validate-package.js"
3536
},
3637
"repository": {
3738
"type": "git",

0 commit comments

Comments
 (0)