Commit b6c13f1
Skip version validation when react-on-rails package not installed
The version checker was failing during `rails generate react_on_rails:install`
because it ran after package.json was created by shakapacker:install but before
the generator had a chance to install the react-on-rails package.
Error was:
**ERROR** ReactOnRails: No React on Rails npm package is installed.
This commit adds an additional check to skip validation if neither
react-on-rails nor react-on-rails-pro package is found in package.json,
allowing the generator to complete its installation process.
The validation will still run normally once the packages are installed,
ensuring version compatibility in production apps.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent d779040 commit b6c13f1
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
0 commit comments