Skip to content

chore: restore lefthook/turborepo.yml and extend it from root#239

Merged
rqbazan merged 2 commits into
mainfrom
chore/restore-lefthook-turborepo-config
Jun 13, 2026
Merged

chore: restore lefthook/turborepo.yml and extend it from root#239
rqbazan merged 2 commits into
mainfrom
chore/restore-lefthook-turborepo-config

Conversation

@rqbazan

@rqbazan rqbazan commented Jun 13, 2026

Copy link
Copy Markdown
Member

What

Restores the lefthook/ folder at the repo root with turborepo.yml, and rewires the root lefthook.yml to extends it instead of inlining the job definitions.

Why

The shared lefthook turborepo config (originally packages/config/src/lefthook/turborepo.yml, added in #161, fixed in #180) was dismantled along with the packages/config package during the microkernel refactor (#220). Its content was copy-pasted directly into the root lefthook.yml.

This restores it as a standalone file and makes the root config a thin pointer, so the hook definitions have a single source of truth again.

Details

  • lefthook/turborepo.yml — restored byte-for-byte from the pre-refactor version (commit 14c8f7a).
  • lefthook.yml — reduced to:
    extends:
      - lefthook/turborepo.yml
  • All jobs are named (jscheck, tscheck, test), so lefthook merges by name with no duplication.

Verification

  • lefthook dump confirms the merged effective config is identical to the previous inline definition (same pre-commit and pre-push hooks).
  • pnpm rr check passes (biome + oxlint type-aware across all 8 packages).
  • The pre-commit hook ran cleanly on this very commit.

🤖 Generated with Claude Code

Restore the shared lefthook turborepo config that was inlined into the
root lefthook.yml during the microkernel refactor (#220). The root
lefthook.yml now extends lefthook/turborepo.yml instead of duplicating
its jobs, keeping a single source of truth for the hook definitions.

Verified with `lefthook dump`: the merged config is identical to the
previous inline definition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3622420

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

The blacksmith-4vcpu-ubuntu-2404 runner is no longer available. Switch
the test job to ubuntu-latest, matching the release and preview jobs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rqbazan
rqbazan merged commit bb6ab69 into main Jun 13, 2026
3 checks passed
@rqbazan
rqbazan deleted the chore/restore-lefthook-turborepo-config branch June 13, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant