Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
9b0e2b7
chore: start next at the released 0.10.0
taraxvoid Oct 2, 2026
82094b7
Merge pull request #107 from taraxvoid/sync-next-0.10.0
taraxvoid Oct 2, 2026
1c74e3a
fix(docs): prerelease tags carry the -next suffix (#109)
taraxvoid Oct 2, 2026
ccf7341
chore(next): release 0.11.0-next (#108)
ravenflight-releases[bot] Oct 2, 2026
5456d70
chore: back-merge v0.11.0 into next
github-actions[bot] Oct 2, 2026
622b08f
Merge pull request #112 from taraxvoid/backmerge/v0.11.0
taraxvoid Oct 2, 2026
006666a
chore: back-merge v0.11.1 into next
github-actions[bot] Oct 2, 2026
4c42781
Merge pull request #116 from taraxvoid/backmerge/v0.11.1
taraxvoid Oct 6, 2026
6a2979c
chore: back-merge v0.12.0 into next (#123)
ravenflight-releases[bot] Oct 6, 2026
896ef20
chore(next): release 0.13.0-next (#126)
ravenflight-releases[bot] Oct 8, 2026
35fc611
chore: back-merge v0.12.1 into next (#128)
ravenflight-releases[bot] Oct 9, 2026
faa203d
feat(lefthook): honor check:precommit in the pre-commit typecheck ste…
taraxvoid Oct 12, 2026
b958116
chore(next): release 0.13.0-next.1 (#136)
ravenflight-releases[bot] Oct 12, 2026
3386fea
chore: back-merge v0.12.3 into next (#140)
taraxvoid Oct 12, 2026
71afc39
chore: back-merge v0.12.4 into next (#145)
taraxvoid Oct 12, 2026
3ed2dc9
chore: back-merge v0.12.4 into next (#148)
taraxvoid Oct 12, 2026
576f26c
chore: back-merge v0.12.4 into next (real merge)
taraxvoid Oct 12, 2026
f255e8b
Merge pull request #151 from taraxvoid/backmerge/v0.12.4-merge
taraxvoid Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please/next-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.9.0"
".": "0.13.0-next.1"
}
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,17 @@ site's own `lefthook.yml` can add commands (for example image compression) but
cannot override ones defined here. Differences go through `package.json`
scripts: define `test:unit:precommit` (for example excluding tests that need a
built `dist/`) and the pre-commit unit step runs it instead of `test:unit`.
Likewise, define `check:precommit` and the typecheck step runs it instead of
`check`. CI keeps calling the full scripts, so these only narrow what runs
locally. Common uses:

- bun: `"test:unit:precommit": "bun test --changed"` runs only the test files
whose imports reach an uncommitted change.
- pnpm workspace: `pnpm -r --filter '...[HEAD]' run <script>` runs only the
changed packages and their dependents. Fall back to the full run when a
root-level file (lockfile, shared tsconfig) changed, since those don't
belong to any package. If the root `package.json` defines the same script
as a recursive run, add `--filter '!{.}'` so it doesn't recurse.

Hook-level options merge too. Don't set `parallel: true` under `pre-commit:` in
the site's `lefthook.yml`: it applies to the merged hook, so every step,
Expand Down Expand Up @@ -360,7 +371,7 @@ Semver, released with [release-please](https://github.com/googleapis/release-ple
| maintenance | `release/N.x` | `0.9.4` | `release-N.x` |

release-please keeps a standing release PR open on each channel's branch, updated as commits land.
Merging it bumps `package.json` (and [`CHANGELOG.md`](CHANGELOG.md) on stable), tags `vX.Y.Z`,
Merging it bumps `package.json` (and [`CHANGELOG.md`](CHANGELOG.md) on stable), tags `vX.Y.Z` (`vX.Y.Z-next[.N]` on `next`),
creates the GitHub release and publishes to npm and JSR under the channel's dist-tag. The PR is
opened with the org's release-bot GitHub App token (`RELEASE_BOT_CLIENT_ID` /
`RELEASE_BOT_APP_PRIVATE_KEY`) so CI runs on it.
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taraxvoid/voidflow",
"version": "0.12.4",
"version": "0.13.0-next.1",
"license": "MIT",
"exports": {
"./playwright": "./playwright/index.mjs"
Expand Down
13 changes: 11 additions & 2 deletions lefthook/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# Lefthook merges lefthook.yml < remotes < lefthook-local.yml, so a site's own
# lefthook.yml can ADD commands (e.g. image compression) but cannot override
# one defined here. Differences go through package.json scripts instead, e.g.
# `test:unit:precommit` replaces `test:unit` for the pre-commit unit step.
# `test:unit:precommit` replaces `test:unit` for the pre-commit unit step, and
# `check:precommit` replaces `check` for the typecheck step.

templates:
# Package manager: pnpm when the repo is a pnpm project, bun otherwise.
Expand All @@ -39,7 +40,15 @@ pre-commit:
run: "{pm} run --if-present lint:actions"
typecheck:
priority: 3
run: "{pm} run --if-present check"
# A site that can check less than everything pre-commit (e.g. only the
# workspace packages a commit touches) defines `check:precommit`;
# otherwise check runs. CI keeps calling `check` directly.
run: |
if grep -q '"check:precommit"' package.json; then
{pm} run check:precommit
else
{pm} run --if-present check
fi
unit:
priority: 3
# A site that can't run its whole suite pre-commit (e.g. tests that need
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taraxvoid/voidflow",
"version": "0.12.4",
"version": "0.13.0-next.1",
"description": "Shared workflows, actions and tooling for @taraxvoid sites",
"license": "MIT",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions test/lefthook-site.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ describe('lefthook/site.yml', () => {
expect(text).toContain('{pm} run --if-present test:unit')
})

test('pre-commit typecheck step prefers check:precommit when a site defines it', async () => {
const text = await Bun.file(config).text()
expect(text).toContain('grep -q \'"check:precommit"\' package.json')
expect(text).toContain('{pm} run check:precommit')
expect(text).toContain('{pm} run --if-present check\n')
})

test('picks the package manager from the lockfile instead of hardcoding bun', async () => {
const text = await Bun.file(config).text()
expect(text).toContain('pnpm-lock.yaml ]; then echo pnpm; else echo bun')
Expand Down
Loading