Commit ba7b11b
authored
Migrate from Yarn Classic to pnpm (#2121)
## Summary
Migrate the react-on-rails monorepo from Yarn Classic (v1.22.22) to pnpm
for improved monorepo management, faster installs, and native workspace
linking.
## Key Changes
- **Package Manager Configuration**
- Add `pnpm-workspace.yaml` and `.npmrc` for pnpm configuration
- Update `packageManager` field to `[email protected]` in all package.json
files
- Convert workspace dependencies from `"*"` to `"workspace:*"` protocol
- Move `pnpm.overrides` from workspace package to root
- **Lock Files**
- Remove all `yarn.lock` files
- Add `pnpm-lock.yaml`
- **GitHub Actions Workflows**
- Add pnpm setup action with caching
- Replace all yarn commands with pnpm equivalents
- Update cache keys from `yarn.lock` to `pnpm-lock.yaml`
- **Rake Tasks**
- Update `rakelib/lint.rake`, `rakelib/node_package.rake`,
`rakelib/dummy_apps.rake`, `rakelib/run_rspec.rake`
- **Documentation**
- Update `CONTRIBUTING.md` and `CLAUDE.md`
- Add note clarifying this only affects contributors
## Note for Users
**End users of react_on_rails can continue using their preferred package
manager** (npm, yarn, pnpm, or bun). The generators automatically detect
your package manager. These changes only affect contributors working on
the react_on_rails codebase itself.
## Test Plan
- [x] `pnpm install` completes successfully
- [x] `pnpm run build` produces correct artifacts
- [ ] CI workflows pass with new pnpm setup
- [ ] yalc publish/add workflow still works
Closes #2120
## Summary by CodeRabbit
* **Chores**
* Migrated project tooling, CI workflows, and workspace configs from
Yarn to PNPM; added PNPM workspace and config changes.
* **Documentation**
* Updated contributor/developer guides, CI/merge instructions, and
changelog to PNPM-first commands; removed/condensed numerous checklist
and bullet items.
* **Bug Fixes**
* UI: error display now renders error values reliably as text.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent b50a74d commit ba7b11b
File tree
64 files changed
+11311
-27659
lines changed- .claude
- commands
- docs
- analysis
- .github/workflows
- bin/lefthook
- docs
- building-features
- contributor-info
- guides
- migrating
- planning/docs-improvement
- upgrading
- release-notes
- packages
- react-on-rails-pro-node-renderer
- react-on-rails-pro
- react-on-rails
- react_on_rails_pro
- spec
- dummy
- client/app/components
- execjs-compatible-dummy
- react_on_rails
- rakelib
- spec/dummy
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+11311
-27659
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
135 | | - | |
136 | 132 | | |
137 | 133 | | |
138 | 134 | | |
| |||
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
151 | | - | |
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
155 | 150 | | |
156 | 151 | | |
157 | | - | |
158 | 152 | | |
159 | 153 | | |
160 | 154 | | |
161 | 155 | | |
162 | 156 | | |
163 | 157 | | |
164 | | - | |
165 | 158 | | |
166 | 159 | | |
167 | 160 | | |
| |||
181 | 174 | | |
182 | 175 | | |
183 | 176 | | |
184 | | - | |
185 | 177 | | |
186 | 178 | | |
187 | 179 | | |
188 | 180 | | |
189 | | - | |
190 | 181 | | |
191 | 182 | | |
192 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
273 | | - | |
274 | 272 | | |
275 | 273 | | |
276 | 274 | | |
| |||
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
285 | | - | |
286 | 283 | | |
287 | 284 | | |
288 | 285 | | |
289 | 286 | | |
290 | 287 | | |
291 | | - | |
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
| |||
375 | 371 | | |
376 | 372 | | |
377 | 373 | | |
378 | | - | |
379 | 374 | | |
380 | 375 | | |
381 | 376 | | |
382 | 377 | | |
383 | 378 | | |
384 | 379 | | |
385 | | - | |
386 | 380 | | |
387 | 381 | | |
388 | 382 | | |
389 | 383 | | |
390 | 384 | | |
391 | 385 | | |
392 | | - | |
393 | 386 | | |
394 | 387 | | |
395 | 388 | | |
396 | 389 | | |
397 | 390 | | |
398 | 391 | | |
399 | | - | |
400 | 392 | | |
401 | 393 | | |
402 | 394 | | |
| |||
491 | 483 | | |
492 | 484 | | |
493 | 485 | | |
494 | | - | |
495 | 486 | | |
496 | 487 | | |
497 | 488 | | |
498 | 489 | | |
499 | 490 | | |
500 | | - | |
501 | 491 | | |
502 | 492 | | |
503 | 493 | | |
| |||
511 | 501 | | |
512 | 502 | | |
513 | 503 | | |
514 | | - | |
515 | 504 | | |
516 | 505 | | |
517 | 506 | | |
518 | 507 | | |
519 | 508 | | |
520 | | - | |
521 | 509 | | |
522 | 510 | | |
523 | 511 | | |
| |||
534 | 522 | | |
535 | 523 | | |
536 | 524 | | |
537 | | - | |
538 | 525 | | |
539 | 526 | | |
540 | 527 | | |
541 | 528 | | |
542 | 529 | | |
543 | | - | |
544 | 530 | | |
545 | 531 | | |
546 | 532 | | |
547 | 533 | | |
548 | 534 | | |
549 | 535 | | |
550 | | - | |
551 | 536 | | |
552 | 537 | | |
553 | 538 | | |
554 | 539 | | |
555 | 540 | | |
556 | 541 | | |
557 | | - | |
558 | 542 | | |
559 | 543 | | |
560 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | | - | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
59 | | - | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | | - | |
66 | 58 | | |
67 | 59 | | |
68 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
| |||
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | | - | |
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | 76 | | |
84 | 77 | | |
85 | 78 | | |
| |||
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
91 | | - | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
| |||
135 | 127 | | |
136 | 128 | | |
137 | 129 | | |
138 | | - | |
139 | 130 | | |
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
144 | | - | |
145 | 135 | | |
146 | 136 | | |
147 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
0 commit comments