Skip to content

build: turn off the pnpm side-effects cache - #12

Merged
NoNamer777 merged 1 commit into
mainfrom
build/disable-side-effects-cache
Sep 25, 2026
Merged

NoNamer777 merged 1 commit into
mainfrom
build/disable-side-effects-cache

Conversation

@NoNamer777

Copy link
Copy Markdown
Member
  • Add sideEffectsCache: false to the build settings in pnpm-workspace.yaml. A cached build of lefthook skips its postinstall script, so pnpm install did not install the Git hooks.
  • Explain the setting in the "Git hooks" section of CONTRIBUTING.md, and name pnpm exec lefthook install as the way to install the hooks by hand.

This changes only the tooling for contributors, not the published package, so it has no changelog entry.

A cached build of lefthook skips its postinstall script, so pnpm
install did not install the Git hooks. Turn off the cache, so the
script runs on every install. Explain the setting in CONTRIBUTING.md
and name the command that installs the hooks by hand.
@NoNamer777
NoNamer777 requested a review from a team as a code owner September 25, 2026 22:41
@NoNamer777
NoNamer777 merged commit 2922c45 into main Sep 25, 2026
4 checks passed
@NoNamer777
NoNamer777 deleted the build/disable-side-effects-cache branch September 25, 2026 22:45
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.

2 participants