Skip to content

chore: ignore pnpm-lock.yaml in prettier to fix verified releases - #411

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/prettierignore-pnpm-lock
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/prettierignore-pnpm-lock

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

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.

libpg-query and parser opened this PR for Dan
Implemented in session Drop Node 20 and revert fingerprint noinline helper
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Chores
    • 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.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


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.

Reviewed commit: 6bd7186

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Prettier ignore list now excludes pnpm-lock.yaml from formatting.

Changes: Prettier ignore rule

Layer / File(s) Summary
Ignore the pnpm lockfile
.prettierignore
The ignore list now includes pnpm-lock.yaml.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: Minimal · up to 6bd71

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 675dedb into main Nov 26, 2026
24 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/prettierignore-pnpm-lock branch November 26, 2026 11:29
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