diff --git a/packages/use-sync-external-store/package.json b/packages/use-sync-external-store/package.json index d756ed20b6069..f34a1ab870b8a 100644 --- a/packages/use-sync-external-store/package.json +++ b/packages/use-sync-external-store/package.json @@ -2,6 +2,22 @@ "name": "use-sync-external-store", "description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.", "version": "1.5.0", + "exports": { + ".": "./index.js", + "./with-selector": "./with-selector.js", + "./with-selector.js": "./with-selector.js", + "./shim": { + "react-native": "./shim/index.native.js", + "default": "./shim/index.js" + }, + "./shim/index.js": "./shim/index.js", + "./shim/index.native": "./shim/index.native.js", + "./shim/index.native.js": "./shim/index.native.js", + "./shim/with-selector": "./shim/with-selector.js", + "./shim/with-selector.js": "./shim/with-selector.js", + "./package.json": "./package.json", + "./src/*": "./src/*.js" + }, "repository": { "type": "git", "url": "https://github.com/facebook/react.git", diff --git a/packages/use-sync-external-store/shim/with-selector/index.js b/packages/use-sync-external-store/shim/with-selector.js similarity index 100% rename from packages/use-sync-external-store/shim/with-selector/index.js rename to packages/use-sync-external-store/shim/with-selector.js