Commit ef7e98c
Fix prepare scripts to avoid yarn deadlock during install
## Problem
The prepare scripts were calling `yarn run build` which caused a deadlock when triggered during `yarn install --frozen-lockfile`. This made the CI test job hang indefinitely.
## Root Cause
When `yarn install` executes the prepare lifecycle hook, it's still holding internal locks. Calling `yarn run` from within this hook tries to acquire the same locks, resulting in a deadlock.
## Solution
Replace `yarn run build` with direct command execution in all prepare scripts:
- `yarn run build` → `(rm -rf ./lib && tsc ...)`
This avoids the yarn deadlock while maintaining the same build behavior.
## Testing
- ✅ Clean install works: `rm -rf node_modules && yarn install --frozen-lockfile`
- ✅ Jest CI tests no longer hang: `yarn workspace react-on-rails-pro-node-renderer run ci`
- ✅ Build artifacts created correctly
- ✅ YALC publish works as expected
## Files Changed
- packages/react-on-rails/package.json
- packages/react-on-rails-pro/package.json
- packages/react-on-rails-pro-node-renderer/package.json
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 0c2f96c commit ef7e98c
File tree
3 files changed
+3
-3
lines changed- packages
- react-on-rails-pro-node-renderer
- react-on-rails-pro
- react-on-rails
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments