Commit d39e978
Skip version validation when package.json doesn't exist
The version checker was failing during `rake shakapacker:install` because
it runs before package.json is created. This broke the generator examples
in CI with error: "package.json file not found".
This commit updates the engine initializer to skip validation when
package.json doesn't exist yet, allowing installation tasks to complete
successfully.
The validation will still run normally once package.json exists, ensuring
version compatibility in production apps.
Fixes generator test failures:
- examples (3.2, minimum)
- examples (3.4, latest)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c24ad81 commit d39e978
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
0 commit comments