Skip to content

Commit dc4c429

Browse files
justin808claude
andcommitted
Add ReScript build step before assets:precompile
The dummy app uses ReScript components that need to be compiled before webpack can bundle them. This adds `pnpm run build:rescript` to compile HelloWorldReScript.res.js and other ReScript files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4160998 commit dc4c429

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/precompile-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
if ! bundle check --path=vendor/bundle; then
129129
bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
130130
fi
131+
- name: Build ReScript files
132+
run: cd react_on_rails/spec/dummy && pnpm run build:rescript
131133
- name: Generate file system-based packs
132134
run: cd react_on_rails/spec/dummy && RAILS_ENV=production bundle exec rake react_on_rails:generate_packs
133135
- name: Run assets:precompile and check output

0 commit comments

Comments
 (0)