Commit 9afba8b
Umar Gora
Fix hydrogen upgrade failing with yarn and pnpm
The upgrade command was using `installNodeModules` which always runs
`<pm> install <packages>`. This works for npm but fails for yarn, pnpm,
and bun which require `add` instead of `install` when adding/upgrading
specific packages. Mirror the pattern already used by
`uninstallNodeModules` which correctly maps the subcommand per package
manager.1 parent a2ce62b commit 9afba8b
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
903 | 902 | | |
904 | 903 | | |
905 | 904 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
910 | 912 | | |
911 | 913 | | |
912 | 914 | | |
| |||
0 commit comments