Skip to content

Commit 08e445b

Browse files
committed
Fix invalid precompile_hook
1 parent 4cf7fab commit 08e445b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

react_on_rails_pro/spec/dummy/bin/shakapacker-precompile-hook

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# This script loads the shared test helper implementation.
77
# For production apps, use the generator template which includes a standalone implementation.
88

9-
# Find the gem root directory (four levels up from react_on_rails_pro/spec/dummy/bin)
10-
gem_root = File.expand_path("../../../..", __dir__)
11-
shared_hook = File.join(gem_root, "spec", "support", "shakapacker_precompile_hook_shared.rb")
9+
# Find the repo root directory (four levels up from react_on_rails_pro/spec/dummy/bin)
10+
repo_root = File.expand_path("../../../..", __dir__)
11+
shared_hook = File.join(repo_root, "react_on_rails", "spec", "support", "shakapacker_precompile_hook_shared.rb")
1212

1313
unless File.exist?(shared_hook)
1414
warn "❌ Error: Shared precompile hook not found at #{shared_hook}"

0 commit comments

Comments
 (0)