Commit 3134980
[rush] Fix sync-back when dependencies move to devDependencies (#5811)
* [rush] Fix sync-back when dependencies move to devDependencies
'rush update' failed to sync back the corrected pnpm-lock.yaml when a dependency moved to devDependencies because
isWorkspaceProjectModifiedAsync would unconditionally fall through to the 'dependencies' section if a package was
missing from 'devDependencies'.
This fall-through is now gated on the new set regularDependencyNames to support legitimate dual-declarations while
correctly detecting when a dependency has been moved out of the 'dependencies' section.
* Update common/changes/@microsoft/rush/fix-rush-update-devDependency-sync_2026-05-29-12-00.json
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
* Update common/changes/@microsoft/rush/fix-rush-update-devDependency-sync_2026-05-29-12-00.json
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
---------
Co-authored-by: Eric Prestemon <eric.prestemon@users.noreply.github.com>
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>1 parent 1d6cb66 commit 3134980
4 files changed
Lines changed: 70 additions & 0 deletions
File tree
- common/changes/@microsoft/rush
- libraries/rush-lib/src/logic/pnpm
- test
- yamlFiles/pnpm-lock-v9
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
1127 | 1129 | | |
1128 | 1130 | | |
1129 | 1131 | | |
| |||
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1151 | 1157 | | |
1152 | 1158 | | |
1153 | 1159 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
490 | 506 | | |
491 | 507 | | |
492 | 508 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments