Update the exports field (#23257)
* 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
Sebastian Markbåge committed
Feb 8, 2022 at 21:07 UTC
0dedfcc681d7963c5d4d138dc8eba69539a56015
24 files changed
+3
-27
packages/create-subscription/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"cjs/"
15
],
packages/eslint-plugin-react-hooks/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"cjs"
15
],
packages/jest-mock-scheduler/package.json
-1
@@ -25,7 +25,6 @@
25
"files": [
26
"LICENSE",
27
"README.md",
28
- "build-info.json",
28
"index.js",
29
"cjs/"
30
]
packages/jest-react/package.json
-1
@@ -29,7 +29,6 @@
29
"files": [
30
"LICENSE",
31
"README.md",
32
- "build-info.json",
32
"index.js",
33
"cjs/"
34
]
packages/react-art/package.json
-1
@@ -34,7 +34,6 @@
34
"files": [
35
"LICENSE",
36
"README.md",
37
- "build-info.json",
37
"index.js",
38
"cjs/",
39
"umd/",
packages/react-cache/package.json
-1
@@ -11,7 +11,6 @@
11
"files": [
12
"LICENSE",
13
"README.md",
14
- "build-info.json",
14
"index.js",
15
"cjs/",
16
"umd/"
packages/react-debug-tools/package.json
-1
@@ -12,7 +12,6 @@
12
"files": [
13
"LICENSE",
14
"README.md",
15
- "build-info.json",
15
"index.js",
16
"cjs/"
17
],
packages/react-devtools-core/package.json
-1
@@ -12,7 +12,6 @@
12
"files": [
13
"dist",
14
"backend.js",
15
- "build-info.json",
15
"standalone.js"
16
],
17
"scripts": {
packages/react-devtools-inline/package.json
-1
@@ -12,7 +12,6 @@
12
"files": [
13
"dist",
14
"backend.js",
15
- "build-info.json",
15
"frontend.js",
16
"hookNames.js"
17
],
packages/react-dom/package.json
+3
-1
@@ -27,7 +27,6 @@
27
"files": [
28
"LICENSE",
29
"README.md",
30
- "build-info.json",
30
"index.js",
31
"profiling.js",
32
"server.js",
@@ -46,8 +45,11 @@
45
"browser": "./server.browser.js",
46
"default": "./server.node.js"
47
},
48
+ "./server.browser": "./server.browser.js",
49
+ "./server.node": "./server.node.js",
50
"./profiling": "./profiling.js",
51
"./test-utils": "./test-utils.js",
52
+ "./unstable_testing": "./unstable_testing.js",
53
"./package.json": "./package.json",
54
"./": "./"
55
},
packages/react-fetch/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"index.node.js",
15
"index.browser.js",
packages/react-fs/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"index.node.server.js",
15
"index.browser.server.js",
packages/react-interactions/package.json
-1
@@ -21,7 +21,6 @@
21
"events/press.js",
22
"events/press-legacy.js",
23
"events/tap.js",
24
- "build-info.json",
24
"cjs/",
25
"umd/"
26
],
packages/react-is/package.json
-1
@@ -19,7 +19,6 @@
19
"files": [
20
"LICENSE",
21
"README.md",
22
- "build-info.json",
22
"index.js",
23
"cjs/",
24
"umd/"
packages/react-noop-renderer/package.json
-1
@@ -22,7 +22,6 @@
22
"files": [
23
"LICENSE",
24
"README.md",
25
- "build-info.json",
25
"index.js",
26
"persistent.js",
27
"server.js",
packages/react-pg/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"index.node.server.js",
15
"index.browser.server.js",
packages/react-reconciler/package.json
-1
@@ -11,7 +11,6 @@
11
"files": [
12
"LICENSE",
13
"README.md",
14
- "build-info.json",
14
"constants.js",
15
"index.js",
16
"reflection.js",
packages/react-refresh/package.json
-1
@@ -13,7 +13,6 @@
13
"README.md",
14
"babel.js",
15
"runtime.js",
16
- "build-info.json",
16
"cjs/",
17
"umd/"
18
],
packages/react-server-dom-webpack/package.json
-1
@@ -11,7 +11,6 @@
11
"files": [
12
"LICENSE",
13
"README.md",
14
- "build-info.json",
14
"index.js",
15
"plugin.js",
16
"writer.js",
packages/react-test-renderer/package.json
-1
@@ -30,7 +30,6 @@
30
"files": [
31
"LICENSE",
32
"README.md",
33
- "build-info.json",
33
"index.js",
34
"shallow.js",
35
"cjs/",
packages/react/package.json
-4
@@ -24,10 +24,6 @@
24
"react-server": "./unstable-shared-subset.js",
25
"default": "./index.js"
26
},
27
- "./index": {
28
- "react-server": "./unstable-shared-subset.js",
29
- "default": "./index.js"
30
- },
27
"./package.json": "./package.json",
28
"./jsx-runtime": "./jsx-runtime.js",
29
"./jsx-dev-runtime": "./jsx-dev-runtime.js",
packages/scheduler/package.json
-1
@@ -23,7 +23,6 @@
23
"files": [
24
"LICENSE",
25
"README.md",
26
- "build-info.json",
26
"index.js",
27
"unstable_mock.js",
28
"unstable_post_task.js",
packages/use-subscription/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"cjs/"
15
],
packages/use-sync-external-store/package.json
-1
@@ -10,7 +10,6 @@
10
"files": [
11
"LICENSE",
12
"README.md",
13
- "build-info.json",
13
"index.js",
14
"index.native.js",
15
"with-selector.js",