feat(husky): Add post-merge hook and prepare script

This commit is contained in:
hyper 2026-06-26 11:22:15 +08:00
parent e4b980202e
commit 1b51370ad0
2 changed files with 4 additions and 1 deletions

2
.husky/post-merge Executable file
View File

@ -0,0 +1,2 @@
npm install --no-audit --no-fund
npm run build

View File

@ -20,7 +20,8 @@
"cli:dev": "tsc -p tsconfig.cli.json --watch", "cli:dev": "tsc -p tsconfig.cli.json --watch",
"cli:build": "tsc -p tsconfig.cli.json", "cli:build": "tsc -p tsconfig.cli.json",
"ttrpg": "node --loader ts-node/esm ./src/cli/index.ts", "ttrpg": "node --loader ts-node/esm ./src/cli/index.ts",
"test": "jest" "test": "jest",
"prepare": "husky"
}, },
"keywords": [ "keywords": [
"ttrpg", "ttrpg",