Skip to content

Commit 0dc461c

Browse files
Update JS dependencies to use yalc for local React on Rails package
- Update pro package.json to use yalc link instead of file: path - Update dummy app package.json to use yalc link - Update ExecJS dummy app package.json to use yalc link - Update CircleCI to publish core package with yalc and add to pro packages - Configure workspace sharing via ~/.yalc instead of node_package/lib 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> Move yalc logic to link-source scripts instead of CI - Add link-source script to pro package.json to build and publish both packages - Update dummy app link-source to build core package first then pro package - Update dummy app preinstall to add react-on-rails via yalc - Revert CircleCI changes to use link-source scripts for yalc management - Keep build-core-package job but remove yalc publishing from CI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0a227f9 commit 0dc461c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

react_on_rails_pro/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
],
116116
"scripts": {
117117
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",
118+
"link-source": "cd ../ && yarn && yarn run build && cd node_package && yalc publish && cd ../react_on_rails_pro && yarn && yarn run nps build && yalc publish",
118119
"test": "nps test",
119120
"prepack": "nps build.prepack",
120121
"prepare": "nps build.prepack",

react_on_rails_pro/spec/dummy/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"react-dom": "19.0.0",
5252
"react-error-boundary": "^4.1.2",
5353
"react-helmet": "^6.0.0-beta.2",
54-
"react-on-rails": "file:../",
54+
"react-on-rails": "link:.yalc/react-on-rails",
5555
"react-on-rails-rsc": "^19.0.2",
5656
"react-proptypes": "^1.0.0",
5757
"react-redux": "^9.2.0",
@@ -95,8 +95,8 @@
9595
"scripts": {
9696
"test": "yarn run build:test && yarn run lint && rspec",
9797
"lint": "cd ../.. && nps lint",
98-
"preinstall": "yarn run link-source && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
99-
"link-source": "cd ../.. && yarn && yarn run nps build && yalc publish",
98+
"preinstall": "yarn run link-source && yalc add --link react-on-rails && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
99+
"link-source": "cd ../../../ && yarn && yarn run build && cd node_package && yalc publish && cd ../react_on_rails_pro && yarn && yarn run nps build && yalc publish",
100100
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",
101101
"build:test": "rm -rf public/webpack/test && rm -rf ssr-generated && RAILS_ENV=test NODE_ENV=test bin/shakapacker",
102102
"build:dev": "rm -rf public/webpack/development && rm -rf ssr-generated && RAILS_ENV=development NODE_ENV=development bin/shakapacker",

react_on_rails_pro/spec/execjs-compatible-dummy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prop-types": "^15.8.1",
3030
"react": "^18.3.1",
3131
"react-dom": "^18.3.1",
32-
"react-on-rails": "15.0.0",
32+
"react-on-rails": "link:.yalc/react-on-rails",
3333
"shakapacker": "8.0.0",
3434
"style-loader": "^4.0.0",
3535
"terser-webpack-plugin": "5",

0 commit comments

Comments
 (0)