You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: ignore pnpm-lock.yaml in prettier to fix verified releases - #411
Add .prettierignore with pnpm-lock.yaml so lerna version stops reformatting the lockfile during releases.
Root Cause
Lerna 10 (npmClient: "pnpm") unconditionally adds pnpm-lock.yaml to changedFiles during lerna version and runs Prettier on every changed file not listed in .prettierignore.
Because this repo had .prettierrc.json with no .prettierignore, every chore(release): publish commit reformatted ~8,200 lines of pnpm-lock.yaml from pnpm's single-quote YAML to Prettier's double-quote YAML with zero semantic changes (yaml.load was deepStrictEqual: true).
constructive-io/npm-publish's verified-release.mjs intentionally rejects pnpm-lock.yaml in the release commit (failed run #45808249295).
Verification
Ran pnpm exec lerna version --yes --conventional-commits --message "chore(release): publish" --no-push locally with .prettierignore in place: the release commit contains only the 15 packages/*/package.json and 15 packages/*/CHANGELOG.md files (30 files total) with zero pnpm-lock.yaml changes.
Updated formatting configuration to leave the dependency lockfile untouched by automated formatting. This is an internal maintenance change and does not alter app features or behavior visible to end users.
This PR is a single-line tooling configuration change: a new .prettierignore file that excludes pnpm-lock.yaml from Prettier formatting. No application logic is touched, so no functional risk is introduced.
Files
Change
.prettierignore
New ignore file preventing Prettier from formatting the generated pnpm-lock.yaml.
This change stops Prettier from reformatting the pnpm lockfile during releases. It has no runtime impact and is trivially reversible, so it is ready to merge.
Architecture risk: Low · up to 6bd71
The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.
Changed systems: None identified.
Architecture concerns
No architecture-level concerns identified.
Review details
Before / after behavior
observed — Modified behavior in .prettierignore: Adds pnpm-lock.yaml to the files ignored by Prettier.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change: pnpm-lock.yaml is excluded from Prettier. The PR adds a .prettierignore entry with that file, which matches the summary and objectives. The title also gives the purpose, wh…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change: pnpm-lock.yaml is excluded from Prettier. The PR adds a .prettierignore entry with that file, which matches the summary and objectives. The title also gives the purpose, which is to fix verified releases. The 'chore:' prefix is a conventional-commit type and fits a config-only change. The title is 65 characters and is specific enough for a reader scanning history.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 4ed0945 and 6bd7186.
Files selected for processing: 1
.prettierignore
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
.prettierignorewithpnpm-lock.yamlsolerna versionstops reformatting the lockfile during releases.Root Cause
npmClient: "pnpm") unconditionally addspnpm-lock.yamltochangedFilesduringlerna versionand runs Prettier on every changed file not listed in.prettierignore..prettierrc.jsonwith no.prettierignore, everychore(release): publishcommit reformatted ~8,200 lines ofpnpm-lock.yamlfrom pnpm's single-quote YAML to Prettier's double-quote YAML with zero semantic changes (yaml.loadwasdeepStrictEqual: true).constructive-io/npm-publish'sverified-release.mjsintentionally rejectspnpm-lock.yamlin the release commit (failed run #45808249295).Verification
pnpm exec lerna version --yes --conventional-commits --message "chore(release): publish" --no-pushlocally with.prettierignorein place: the release commit contains only the 15packages/*/package.jsonand 15packages/*/CHANGELOG.mdfiles (30 files total) with zeropnpm-lock.yamlchanges.Implemented in session Drop Node 20 and revert fingerprint noinline helper
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit