|
1 | 1 | { |
2 | | - "name": "react-on-rails-monorepo", |
| 2 | + "name": "react-on-rails", |
3 | 3 | "version": "16.1.1", |
4 | | - "description": "React on Rails monorepo workspace manager", |
5 | | - "private": true, |
| 4 | + "description": "react-on-rails JavaScript for react_on_rails Ruby gem", |
| 5 | + "main": "node_package/lib/ReactOnRails.full.js", |
| 6 | + "type": "module", |
| 7 | + "exports": { |
| 8 | + ".": { |
| 9 | + "react-server": "./node_package/lib/pro/ReactOnRailsRSC.js", |
| 10 | + "node": "./node_package/lib/ReactOnRails.node.js", |
| 11 | + "default": "./node_package/lib/ReactOnRails.full.js" |
| 12 | + }, |
| 13 | + "./client": "./node_package/lib/ReactOnRails.client.js", |
| 14 | + "./registerServerComponent/client": "./node_package/lib/pro/registerServerComponent/client.js", |
| 15 | + "./registerServerComponent/server": { |
| 16 | + "react-server": "./node_package/lib/pro/registerServerComponent/server.rsc.js", |
| 17 | + "default": "./node_package/lib/pro/registerServerComponent/server.js" |
| 18 | + }, |
| 19 | + "./wrapServerComponentRenderer/client": "./node_package/lib/pro/wrapServerComponentRenderer/client.js", |
| 20 | + "./wrapServerComponentRenderer/server": { |
| 21 | + "react-server": "./node_package/lib/pro/wrapServerComponentRenderer/server.rsc.js", |
| 22 | + "default": "./node_package/lib/pro/wrapServerComponentRenderer/server.js" |
| 23 | + }, |
| 24 | + "./RSCRoute": "./node_package/lib/pro/RSCRoute.js", |
| 25 | + "./RSCProvider": "./node_package/lib/pro/RSCProvider.js", |
| 26 | + "./ServerComponentFetchError": "./node_package/lib/pro/ServerComponentFetchError.js" |
| 27 | + }, |
6 | 28 | "workspaces": [ |
7 | 29 | "packages/react-on-rails" |
8 | 30 | ], |
9 | 31 | "directories": { |
10 | 32 | "doc": "docs" |
11 | 33 | }, |
| 34 | + "peerDependencies": { |
| 35 | + "react": ">= 16", |
| 36 | + "react-dom": ">= 16", |
| 37 | + "react-on-rails-rsc": "19.0.2" |
| 38 | + }, |
| 39 | + "peerDependenciesMeta": { |
| 40 | + "react-on-rails-rsc": { |
| 41 | + "optional": true |
| 42 | + } |
| 43 | + }, |
| 44 | + "files": [ |
| 45 | + "node_package/lib" |
| 46 | + ], |
12 | 47 | "devDependencies": { |
13 | 48 | "@arethetypeswrong/cli": "^0.17.4", |
14 | 49 | "@babel/core": "^7.20.12", |
|
60 | 95 | "test": "yarn workspace react-on-rails test", |
61 | 96 | "clean": "yarn workspace react-on-rails clean", |
62 | 97 | "start": "nps", |
| 98 | + "prepack": "nps build.prepack", |
| 99 | + "prepare": "nps build.prepack", |
| 100 | + "prepublishOnly": "yarn run build", |
63 | 101 | "build": "yarn workspace react-on-rails build", |
64 | 102 | "build-watch": "yarn workspace react-on-rails build-watch", |
65 | 103 | "lint": "nps eslint", |
66 | 104 | "check": "yarn run lint && yarn run test && yarn run type-check", |
67 | 105 | "type-check": "yarn workspace react-on-rails type-check", |
| 106 | + "release:patch": "node_package/scripts/release patch", |
| 107 | + "release:minor": "node_package/scripts/release minor", |
| 108 | + "release:major": "node_package/scripts/release major", |
68 | 109 | "postinstall": "test -f .lefthook.yml && test -d .git && command -v bundle >/dev/null 2>&1 && bundle exec lefthook install || true" |
69 | 110 | }, |
70 | 111 | "repository": { |
|
0 commit comments