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
This commit is contained in:
Sebastian Markbåge
2022-02-08 21:07:26 -05:00
committed by GitHub
parent 7b541a980d
commit 0dedfcc681
24 changed files with 3 additions and 27 deletions

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs"
],

View File

@@ -25,7 +25,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
]

View File

@@ -29,7 +29,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
]

View File

@@ -34,7 +34,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/",

View File

@@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/"

View File

@@ -12,7 +12,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],

View File

@@ -12,7 +12,6 @@
"files": [
"dist",
"backend.js",
"build-info.json",
"standalone.js"
],
"scripts": {

View File

@@ -12,7 +12,6 @@
"files": [
"dist",
"backend.js",
"build-info.json",
"frontend.js",
"hookNames.js"
],

View File

@@ -27,7 +27,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"profiling.js",
"server.js",
@@ -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",
"./": "./"
},

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.js",
"index.browser.js",

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.server.js",
"index.browser.server.js",

View File

@@ -21,7 +21,6 @@
"events/press.js",
"events/press-legacy.js",
"events/tap.js",
"build-info.json",
"cjs/",
"umd/"
],

View File

@@ -19,7 +19,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/",
"umd/"

View File

@@ -22,7 +22,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"persistent.js",
"server.js",

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.node.server.js",
"index.browser.server.js",

View File

@@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"constants.js",
"index.js",
"reflection.js",

View File

@@ -13,7 +13,6 @@
"README.md",
"babel.js",
"runtime.js",
"build-info.json",
"cjs/",
"umd/"
],

View File

@@ -11,7 +11,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"plugin.js",
"writer.js",

View File

@@ -30,7 +30,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"shallow.js",
"cjs/",

View File

@@ -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",

View File

@@ -23,7 +23,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"unstable_mock.js",
"unstable_post_task.js",

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"cjs/"
],

View File

@@ -10,7 +10,6 @@
"files": [
"LICENSE",
"README.md",
"build-info.json",
"index.js",
"index.native.js",
"with-selector.js",