This repository has been archived on 2026-06-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pulse/package.json
小橘 🍊 21a8c38040 chore: add pre-push hook for lint + tests (closes #29) (#38)
* 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>
2026-04-14 23:38:34 +08:00

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/*"
]
}