Skip to content

Commit 7316774

Browse files
Revert "use react-on-rails as a peer dependency"
This reverts commit 635b5da.
1 parent 635b5da commit 7316774

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/react-on-rails-pro/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@
5353
"./RSCProvider": "./lib/RSCProvider.js",
5454
"./ServerComponentFetchError": "./lib/ServerComponentFetchError.js"
5555
},
56+
"dependencies": {
57+
"react-on-rails": "*"
58+
},
5659
"peerDependencies": {
5760
"react": ">= 16",
5861
"react-dom": ">= 16",
59-
"react-on-rails-rsc": "19.0.2",
60-
"react-on-rails": "*"
62+
"react-on-rails-rsc": "19.0.2"
6163
},
6264
"peerDependenciesMeta": {
6365
"react-on-rails-rsc": {

react_on_rails_pro/spec/dummy/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
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": "link:.yalc/react-on-rails",
5554
"react-on-rails-pro": "link:.yalc/react-on-rails-pro",
5655
"react-on-rails-rsc": "^19.0.2",
5756
"react-proptypes": "^1.0.0",
@@ -96,7 +95,7 @@
9695
"scripts": {
9796
"test": "yarn run build:test && yarn run lint && rspec",
9897
"lint": "cd ../.. && nps lint",
99-
"preinstall": "yarn run link-source && yalc add --link react-on-rails && yalc add --link react-on-rails-pro && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
98+
"preinstall": "yarn run link-source && yalc add --link react-on-rails-pro && cd .yalc/react-on-rails-pro && yalc add --link react-on-rails && cd ../.. && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
10099
"link-source": "cd ../../.. && yarn && yarn run yalc:publish && cd react_on_rails_pro && yarn && yalc publish",
101100
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",
102101
"build:test": "rm -rf public/webpack/test && rm -rf ssr-generated && RAILS_ENV=test NODE_ENV=test bin/shakapacker",

react_on_rails_pro/spec/dummy/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5357,7 +5357,7 @@ react-on-rails-rsc@^19.0.2:
53575357
neo-async "^2.6.1"
53585358
webpack-sources "^3.2.0"
53595359

5360-
"react-on-rails@link:.yalc/react-on-rails":
5360+
"react-on-rails@link:.yalc/react-on-rails-pro/.yalc/react-on-rails":
53615361
version "0.0.0"
53625362
uid ""
53635363

0 commit comments

Comments
 (0)