Commit a938cf5
committed
fix(cli): fix yarn install failure in vp create
Two issues caused yarn install to fail in CI for newly created projects:
1. In CI (CI=true), yarn Berry defaults to enableImmutableInstalls which
prevents creating a new lockfile. Pass --no-frozen-lockfile to
vp install since vp create always needs to generate a fresh lockfile.
2. Standalone yarn projects had no .yarnrc.yml created during migration.
Without nodeLinker: node-modules, yarn 4 defaults to PnP which
doesn't work with vite-plus. Now rewriteYarnrcYml() ensures
nodeLinker is set and is called for standalone projects too.
Also removes all yarn exclusions from the create e2e test workflow
(full 12-job matrix now enabled).1 parent 2f889e9 commit a938cf5
3 files changed
Lines changed: 25 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 141 | | |
154 | 142 | | |
155 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
809 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
810 | 815 | | |
811 | 816 | | |
812 | 817 | | |
| |||
955 | 960 | | |
956 | 961 | | |
957 | 962 | | |
958 | | - | |
959 | | - | |
960 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
961 | 971 | | |
962 | 972 | | |
963 | 973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
813 | 818 | | |
814 | 819 | | |
815 | 820 | | |
| |||
1116 | 1121 | | |
1117 | 1122 | | |
1118 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1119 | 1128 | | |
1120 | 1129 | | |
1121 | 1130 | | |
| |||
0 commit comments