Skip to content

Commit

Permalink
Update the exports field (#23257)
Browse files Browse the repository at this point in the history
* Add .browser and .node explicit entry points

This can be useful when the automatic selection doesn't work properly.

* Remove react/index

I'm not sure why I added this in the first place. Perhaps due to how our
builds work somehow.

* Remove build-info.json from files field
  • Loading branch information
sebmarkbage committed Feb 9, 2022
1 parent 7b541a9 commit 0dedfcc
Show file tree
Hide file tree
Showing 24 changed files with 3 additions and 27 deletions.
1 change: 0 additions & 1 deletion packages/create-subscription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin-react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs"
],
Expand Down
1 change: 0 additions & 1 deletion packages/jest-mock-scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
]
Expand Down
1 change: 0 additions & 1 deletion packages/jest-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
]
Expand Down
1 change: 0 additions & 1 deletion packages/react-art/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/",
Expand Down
1 change: 0 additions & 1 deletion packages/react-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/"
Expand Down
1 change: 0 additions & 1 deletion packages/react-debug-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],
Expand Down
1 change: 0 additions & 1 deletion packages/react-devtools-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"files": [
"dist",
"backend.js",
"build-info.json",
"standalone.js"
],
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion packages/react-devtools-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"files": [
"dist",
"backend.js",
"build-info.json",
"frontend.js",
"hookNames.js"
],
Expand Down
4 changes: 3 additions & 1 deletion packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"profiling.js",
"server.js",
Expand All @@ -46,8 +45,11 @@
"browser": "./server.browser.js",
"default": "./server.node.js"
},
"./server.browser": "./server.browser.js",
"./server.node": "./server.node.js",
"./profiling": "./profiling.js",
"./test-utils": "./test-utils.js",
"./unstable_testing": "./unstable_testing.js",
"./package.json": "./package.json",
"./": "./"
},
Expand Down
1 change: 0 additions & 1 deletion packages/react-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.js",
"index.browser.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.server.js",
"index.browser.server.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"events/press.js",
"events/press-legacy.js",
"events/tap.js",
"build-info.json",
"cjs/",
"umd/"
],
Expand Down
1 change: 0 additions & 1 deletion packages/react-is/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/"
Expand Down
1 change: 0 additions & 1 deletion packages/react-noop-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"persistent.js",
"server.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.server.js",
"index.browser.server.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-reconciler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"constants.js",
"index.js",
"reflection.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-refresh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"README.md",
"babel.js",
"runtime.js",
"build-info.json",
"cjs/",
"umd/"
],
Expand Down
1 change: 0 additions & 1 deletion packages/react-server-dom-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"plugin.js",
"writer.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"shallow.js",
"cjs/",
Expand Down
4 changes: 0 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
"react-server": "./unstable-shared-subset.js",
"default": "./index.js"
},
"./index": {
"react-server": "./unstable-shared-subset.js",
"default": "./index.js"
},
"./package.json": "./package.json",
"./jsx-runtime": "./jsx-runtime.js",
"./jsx-dev-runtime": "./jsx-dev-runtime.js",
Expand Down
1 change: 0 additions & 1 deletion packages/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"unstable_mock.js",
"unstable_post_task.js",
Expand Down
1 change: 0 additions & 1 deletion packages/use-subscription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],
Expand Down
1 change: 0 additions & 1 deletion packages/use-sync-external-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.native.js",
"with-selector.js",
Expand Down

0 comments on commit 0dedfcc

Please sign in to comment.