Skip to content

Commit 1850fde

Browse files
justin808claude
andcommitted
Fix prepack script to use yarn instead of npm in package-scripts.yml
The build.prepack script in package-scripts.yml was using `npm run build` which causes failures in CI. This is inconsistent with the rest of the codebase which uses yarn. Changed line 29 from: (npm run build >/dev/null 2>&1 || true) To: (yarn run build >/dev/null 2>&1 || true) This matches the fix previously made in packages/react-on-rails/package.json (commit 9f254fb) but was missed in the root package-scripts.yml file. Fixes CI error: Building react-on-rails seems to have failed! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e072d11 commit 1850fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ scripts:
2626
# 4. If it failed, print an error message (still follow https://docs.npmjs.com/cli/v8/using-npm/scripts#best-practices).
2727
script: >
2828
[ -f packages/react-on-rails/lib/ReactOnRails.full.js ] ||
29-
(npm run build >/dev/null 2>&1 || true) &&
29+
(yarn run build >/dev/null 2>&1 || true) &&
3030
[ -f packages/react-on-rails/lib/ReactOnRails.full.js ] ||
3131
{ echo 'Building react-on-rails seems to have failed!'; }
3232

0 commit comments

Comments
 (0)