Skip to content

Commit

Permalink
Remove explicit React Native entry point (#7138)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Jul 5, 2023
1 parent f1c8d38 commit c2686ed
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 51 deletions.
6 changes: 6 additions & 0 deletions .changeset/slow-fishes-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'firebase': major
'@firebase/auth': major
---

Remove `firebase/auth/react-native` entry point. The React Native bundle should be automatically picked up by React Native build tools which recognize the `react-native` fields in `package.json` (at the top level and in `exports`).
7 changes: 1 addition & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
"types": "./dist/cordova/index.cordova.d.ts",
"default": "./dist/cordova/index.js"
},
"./react-native": {
"types": "./dist/rn/index.rn.d.ts",
"default": "./dist/rn/index.js"
},
"./internal": {
"types": "./dist/internal/index.d.ts",
"node": {
Expand Down Expand Up @@ -72,8 +68,7 @@
"files": [
"dist",
"cordova/package.json",
"internal/package.json",
"react-native/package.json"
"internal/package.json"
],
"scripts": {
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
Expand Down
7 changes: 0 additions & 7 deletions packages/auth/react-native/package.json

This file was deleted.

18 changes: 0 additions & 18 deletions packages/firebase/auth/react-native/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/firebase/auth/react-native/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,6 @@
},
"default": "./auth/cordova/dist/esm/index.esm.js"
},
"./auth/react-native": {
"types": "./auth/react-native/dist/auth/react-native/index.d.ts",
"node": {
"require": "./auth/react-native/dist/index.cjs.js",
"import": "./auth/react-native/dist/index.mjs"
},
"browser": {
"require": "./auth/react-native/dist/index.cjs.js",
"import": "./auth/react-native/dist/esm/index.esm.js"
},
"default": "./auth/react-native/dist/esm/index.esm.js"
},
"./database": {
"types": "./database/dist/database/index.d.ts",
"node": {
Expand Down Expand Up @@ -421,7 +409,6 @@
"app-check",
"auth",
"auth/cordova",
"auth/react-native",
"functions",
"firestore",
"firestore/lite",
Expand Down

0 comments on commit c2686ed

Please sign in to comment.