Skip to content

fix: do not reinstall packages when pnpm reformats its workspace file (#25084) (CP: 25.2) - #25087

Merged
vaadin-bot merged 1 commit into
25.2from
cherry-pick-25084-to-25.2-1785473342256
Jul 31, 2026
Merged

fix: do not reinstall packages when pnpm reformats its workspace file (#25084) (CP: 25.2)#25087
vaadin-bot merged 1 commit into
25.2from
cherry-pick-25084-to-25.2-1785473342256

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #25084 to branch 25.2.

Original PR description

PnpmWorkspaceFile.save() compared the serialized text of pnpm-workspace.yaml against the file on disk. pnpm rewrites that file while installing, in its own formatting, so the next dev-mode start re-serialized identical content, saw different text and reported a change. That marks package.json as modified and runs a full package install on the first reload of a fresh project, while the user waits.

Compare the parsed content instead, so the same configuration in a different layout is not a change.

Fixes #25083

…#25084)

PnpmWorkspaceFile.save() compared the serialized text of
pnpm-workspace.yaml against the file on disk. pnpm rewrites that file
while installing, in its own formatting, so the next dev-mode start
re-serialized identical content, saw different text and reported a
change. That marks package.json as modified and runs a full package
install on the first reload of a fresh project, while the user waits.

Compare the parsed content instead, so the same configuration in a
different layout is not a change.

Fixes #25083
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot
vaadin-bot enabled auto-merge (squash) July 31, 2026 04:59
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 1 459 files  ±0   1 459 suites  ±0   1h 25m 58s ⏱️ - 1m 1s
10 320 tests +1  10 252 ✅ +1  68 💤 ±0  0 ❌ ±0 
10 792 runs  +1  10 723 ✅ +1  69 💤 ±0  0 ❌ ±0 

Results for commit 102b184. ± Comparison against base commit 6f24c24.

@vaadin-bot
vaadin-bot merged commit 18ec642 into 25.2 Jul 31, 2026
34 checks passed
@vaadin-bot
vaadin-bot deleted the cherry-pick-25084-to-25.2-1785473342256 branch July 31, 2026 05:07
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This ticket/PR has been released with Vaadin 25.2.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants