21a8c38040
* chore: add pre-push hook for lint + tests (closes #29) - scripts/install-hooks.mjs: zero-dep hook installer, runs on postinstall - Pre-push runs: biome lint + pulse tests + pulse-hermes tests - CI: add pulse-hermes type check + tests, use bun run lint - CONTRIBUTING.md: document hook setup Uses pure Node.js APIs (no Bun dependency) so postinstall works with any runtime. Users can delete .git/hooks/pre-push to opt out. * fix: TS2322 in findEffectiveEpoch — cast meta.to to string meta is Record<string, unknown>, so meta.to is unknown. Explicit cast to (string | undefined) satisfies codeRev: string param. --------- Co-authored-by: 鹿鸣 <luming@shazhou.work>
18 lines
471 B
JSON
18 lines
471 B
JSON
{
|
|
"name": "pulse-monorepo",
|
|
"private": true,
|
|
"scripts": {
|
|
"lint": "bun x @biomejs/biome check packages/",
|
|
"lint:fix": "bun x @biomejs/biome check --fix packages/",
|
|
"test": "cd packages/pulse && bun test && cd ../pulse-hermes && bun test",
|
|
"precheck": "bun run lint && bun run test",
|
|
"postinstall": "node scripts/install-hooks.mjs || true"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.11"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
]
|
|
}
|