Skip to content

Commit 4097dbb

Browse files
zeevdrclaude
andauthored
build: gate prepublishOnly on lint, typecheck, and tests (#103)
Run pre-commit (biome + tsc --noEmit + vitest) before building on publish, so a broken package can never reach the registry. Closes #69 Co-authored-by: Claude <noreply@anthropic.com>
1 parent ddcfa65 commit 4097dbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"test:coverage": "vitest run --coverage",
3333
"test:integration": "DECREE_INTEGRATION=1 sh -c 'cd integration && vitest run'",
3434
"pre-commit": "biome check src/ test/ integration/ && tsc --noEmit && vitest run",
35-
"prepublishOnly": "npm run build"
35+
"prepublishOnly": "npm run pre-commit && npm run build"
3636
},
3737
"keywords": [
3838
"config",

0 commit comments

Comments
 (0)