Commit 6f51900
Fix: Correct precompile_hook detection to use top-level config key
The master's sophisticated hook detection was looking for the hook at
`:hooks/:precompile` but shakapacker.yml uses `precompile_hook` at the
top level. Updated `extract_precompile_hook` to look in the correct
location.
Also updated specs to match the sophisticated implementation that checks
if the hook actually contains the generate_packs rake task, rather than
just checking for any hook presence.
Fixes failing rspec-package-tests in CI.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 57ddb2c commit 6f51900
File tree
2 files changed
+12
-4
lines changed- lib/react_on_rails
- spec/react_on_rails
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| |||
0 commit comments