Repository navigation
Commit ac29ecb
committed
fix(@angular/cli): use the workspace package manager in catalog update guidance
When `ng update` aborts because a package uses the `catalog:` protocol, the manual
migration steps hardcode pnpm and yarn: the install step suggests 'pnpm install' for
every package manager except yarn, and the catalog file hint only names
pnpm-workspace.yaml and .yarnrc.yml. Bun workspaces also support catalogs, so a bun
workspace is told to run 'pnpm install' and to look for files it does not have.
Build the install command from the detected package manager and name the catalog
location it actually uses: pnpm-workspace.yaml for pnpm, .yarnrc.yml for yarn, and the
'workspaces.catalog' field in the root package.json for bun. The previous generic text
is kept as a fallback when the package manager is unknown.
The new spec fails without the fix: with `packageManager: 'bun'`, the guidance suggested
'pnpm install' and the pnpm/yarn file names.1 parent 2c6e8b9 commit ac29ecb
2 files changed
Lines changed: 38 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
836 | | - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
837 | 845 | | |
838 | 846 | | |
839 | 847 | | |
| |||
853 | 861 | | |
854 | 862 | | |
855 | 863 | | |
856 | | - | |
| 864 | + | |
857 | 865 | | |
858 | 866 | | |
859 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
547 | 574 | | |
548 | 575 | | |
549 | 576 | | |
| |||
0 commit comments