diff --git a/packages-exp/firebase-exp/analytics/package.json b/packages-exp/firebase-exp/analytics/package.json index 07cba47df64..a4efc64b610 100644 --- a/packages-exp/firebase-exp/analytics/package.json +++ b/packages-exp/firebase-exp/analytics/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/analytics", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/analytics/index.d.ts" + "typings": "dist/analytics/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/app-check/package.json b/packages-exp/firebase-exp/app-check/package.json index 4b547cb9347..2ae4cd95979 100644 --- a/packages-exp/firebase-exp/app-check/package.json +++ b/packages-exp/firebase-exp/app-check/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/app-check", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/app-check/index.d.ts" -} \ No newline at end of file + "typings": "dist/app-check/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/app/package.json b/packages-exp/firebase-exp/app/package.json index 318577de23d..7f3262bd49a 100644 --- a/packages-exp/firebase-exp/app/package.json +++ b/packages-exp/firebase-exp/app/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/app", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/app/index.d.ts" + "typings": "dist/app/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/auth/cordova/package.json b/packages-exp/firebase-exp/auth/cordova/package.json index 83b0c1498a9..cb4dc1f626c 100644 --- a/packages-exp/firebase-exp/auth/cordova/package.json +++ b/packages-exp/firebase-exp/auth/cordova/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/auth/cordova", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/auth/cordova/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/auth/cordova", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/auth/cordova/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/auth/package.json b/packages-exp/firebase-exp/auth/package.json index a3874cfe19b..8508ef7aa5a 100644 --- a/packages-exp/firebase-exp/auth/package.json +++ b/packages-exp/firebase-exp/auth/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/auth", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/auth/index.d.ts" + "typings": "dist/auth/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/auth/react-native/package.json b/packages-exp/firebase-exp/auth/react-native/package.json index 43ac89ac5a9..fc5de5175c1 100644 --- a/packages-exp/firebase-exp/auth/react-native/package.json +++ b/packages-exp/firebase-exp/auth/react-native/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/auth/react-native", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/auth/react-native/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/auth/react-native", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/auth/react-native/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/analytics/package.json b/packages-exp/firebase-exp/compat/analytics/package.json index 073bb7020d9..aac4bf9d943 100644 --- a/packages-exp/firebase-exp/compat/analytics/package.json +++ b/packages-exp/firebase-exp/compat/analytics/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/analytics", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/analytics/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/analytics", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/analytics/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/app-check/package.json b/packages-exp/firebase-exp/compat/app-check/package.json index 7bbceafa3e8..0415ce945d0 100644 --- a/packages-exp/firebase-exp/compat/app-check/package.json +++ b/packages-exp/firebase-exp/compat/app-check/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/compat/app-check", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/compat/app-check/index.d.ts" + "typings": "dist/compat/app-check/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/compat/app/package.json b/packages-exp/firebase-exp/compat/app/package.json index 968d833c679..5378fc49169 100644 --- a/packages-exp/firebase-exp/compat/app/package.json +++ b/packages-exp/firebase-exp/compat/app/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/app", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "../index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/app", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "../index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/auth/package.json b/packages-exp/firebase-exp/compat/auth/package.json index 6fc48fbfced..dd0dbcbe355 100644 --- a/packages-exp/firebase-exp/compat/auth/package.json +++ b/packages-exp/firebase-exp/compat/auth/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/auth", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/auth/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/auth", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/auth/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/database/package.json b/packages-exp/firebase-exp/compat/database/package.json index 6d1facb28fe..e685c37b115 100644 --- a/packages-exp/firebase-exp/compat/database/package.json +++ b/packages-exp/firebase-exp/compat/database/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/database", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/database/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/database", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/database/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/firestore/package.json b/packages-exp/firebase-exp/compat/firestore/package.json index f8cbbf416d9..a479c4d16e9 100644 --- a/packages-exp/firebase-exp/compat/firestore/package.json +++ b/packages-exp/firebase-exp/compat/firestore/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/firestore", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/firestore/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/firestore", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/firestore/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/functions/package.json b/packages-exp/firebase-exp/compat/functions/package.json index d876df9fd29..1e88cb48e33 100644 --- a/packages-exp/firebase-exp/compat/functions/package.json +++ b/packages-exp/firebase-exp/compat/functions/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/functions", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/functions/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/functions", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/functions/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/messaging/package.json b/packages-exp/firebase-exp/compat/messaging/package.json index 02b7b3bfd15..453a800ec4a 100644 --- a/packages-exp/firebase-exp/compat/messaging/package.json +++ b/packages-exp/firebase-exp/compat/messaging/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/messaging", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/messaging/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/messaging", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/messaging/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/package.json b/packages-exp/firebase-exp/compat/package.json index 0da0d1bd5dd..54576c5d260 100644 --- a/packages-exp/firebase-exp/compat/package.json +++ b/packages-exp/firebase-exp/compat/package.json @@ -1,21 +1,22 @@ { - "name": "firebase-exp/compat", - "main": "dist/index.node.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "react-native": "dist/index.rn.cjs.js", - "typings": "index.d.ts", - "components": [ - "app", - "analytics", - "app-check", - "auth", - "functions", - "messaging", - "performance", - "remote-config", - "firestore", - "storage", - "database" - ] -} \ No newline at end of file + "name": "firebase-exp/compat", + "main": "dist/index.node.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "react-native": "dist/index.rn.cjs.js", + "typings": "index.d.ts", + "components": [ + "app", + "analytics", + "app-check", + "auth", + "functions", + "messaging", + "performance", + "remote-config", + "firestore", + "storage", + "database" + ], + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/performance/package.json b/packages-exp/firebase-exp/compat/performance/package.json index 490128adbe0..dc3b43f2221 100644 --- a/packages-exp/firebase-exp/compat/performance/package.json +++ b/packages-exp/firebase-exp/compat/performance/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/performance", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/performance/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/performance", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/performance/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/remote-config/package.json b/packages-exp/firebase-exp/compat/remote-config/package.json index 9d1d297385a..9f68a1f4669 100644 --- a/packages-exp/firebase-exp/compat/remote-config/package.json +++ b/packages-exp/firebase-exp/compat/remote-config/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/remote-config", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/remote-config/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/remote-config", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/remote-config/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/compat/storage/package.json b/packages-exp/firebase-exp/compat/storage/package.json index e0a33b427c7..a286a2f82cd 100644 --- a/packages-exp/firebase-exp/compat/storage/package.json +++ b/packages-exp/firebase-exp/compat/storage/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/compat/storage", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/compat/storage/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/compat/storage", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/storage/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/database/package.json b/packages-exp/firebase-exp/database/package.json index d4f715a53bb..535c4f4e261 100644 --- a/packages-exp/firebase-exp/database/package.json +++ b/packages-exp/firebase-exp/database/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/database", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/database/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/database", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/database/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/firestore/lite/package.json b/packages-exp/firebase-exp/firestore/lite/package.json index d2ef7841699..d0b413bbf8b 100644 --- a/packages-exp/firebase-exp/firestore/lite/package.json +++ b/packages-exp/firebase-exp/firestore/lite/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/firestore/lite", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/firestore/lite/index.d.ts" + "typings": "dist/firestore/lite/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/firestore/package.json b/packages-exp/firebase-exp/firestore/package.json index 3aeb4159404..25cc8b85aa6 100644 --- a/packages-exp/firebase-exp/firestore/package.json +++ b/packages-exp/firebase-exp/firestore/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/firestore", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/firestore/index.d.ts" + "typings": "dist/firestore/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/functions/package.json b/packages-exp/firebase-exp/functions/package.json index 1bdc6028a27..aa6f2eea1fe 100644 --- a/packages-exp/firebase-exp/functions/package.json +++ b/packages-exp/firebase-exp/functions/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/functions", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/functions/index.d.ts" + "typings": "dist/functions/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/messaging/package.json b/packages-exp/firebase-exp/messaging/package.json index c2e46721890..6579c826379 100644 --- a/packages-exp/firebase-exp/messaging/package.json +++ b/packages-exp/firebase-exp/messaging/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/messaging", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/messaging/index.d.ts" + "typings": "dist/messaging/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/messaging/sw/package.json b/packages-exp/firebase-exp/messaging/sw/package.json index 2c2ebcc3afc..f92db94c9f8 100644 --- a/packages-exp/firebase-exp/messaging/sw/package.json +++ b/packages-exp/firebase-exp/messaging/sw/package.json @@ -1,8 +1,8 @@ { - "name": "firebase-exp/messaging/sw", - "main": "dist/index.cjs.js", - "browser": "dist/index.esm.js", - "module": "dist/index.esm.js", - "typings": "dist/messaging/sw/index.d.ts" - } - \ No newline at end of file + "name": "firebase-exp/messaging/sw", + "main": "dist/index.cjs", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/messaging/sw/index.d.ts", + "type": "module" +} diff --git a/packages-exp/firebase-exp/package.json b/packages-exp/firebase-exp/package.json index 8315d4ce07b..15c2fb82c8a 100644 --- a/packages-exp/firebase-exp/package.json +++ b/packages-exp/firebase-exp/package.json @@ -25,107 +25,185 @@ ], "exports": { "./analytics": { - "node": "./analytics/dist/index.cjs.js", + "node": { + "require": "./analytics/dist/index.cjs", + "import": "./analytics/dist/index.esm.js" + }, "default": "./analytics/dist/index.esm.js" }, "./app": { - "node": "./app/dist/index.cjs.js", + "node": { + "require": "./app/dist/index.cjs", + "import": "./app/dist/index.esm.js" + }, "default": "./app/dist/index.esm.js" }, "./app-check": { - "node": "./app-check/dist/index.cjs.js", + "node": { + "require": "./app-check/dist/index.cjs", + "import": "./app-check/dist/index.esm.js" + }, "default": "./app-check/dist/index.esm.js" }, "./auth": { - "node": "./auth/dist/index.cjs.js", + "node": { + "require": "./auth/dist/index.cjs", + "import": "./auth/dist/index.esm.js" + }, "default": "./auth/dist/index.esm.js" }, "./auth/cordova": { - "node": "./auth/cordova/dist/index.cjs.js", + "node": { + "require": "./auth/cordova/dist/index.cjs", + "import": "./auth/cordova/dist/index.esm.js" + }, "default": "./auth/cordova/dist/index.esm.js" }, "./auth/react-native": { - "node": "./auth/react-native/dist/index.cjs.js", + "node": { + "require": "./auth/react-native/dist/index.cjs", + "import": "./auth/react-native/dist/index.esm.js" + }, "default": "./auth/react-native/dist/index.esm.js" }, "./database": { - "node": "./database/dist/index.cjs.js", + "node": { + "require": "./database/dist/index.cjs", + "import": "./database/dist/index.esm.js" + }, "default": "./database/dist/index.esm.js" }, "./firestore": { - "node": "./firestore/dist/index.cjs.js", + "node": { + "require": "./firestore/dist/index.cjs", + "import": "./firestore/dist/index.esm.js" + }, "default": "./firestore/dist/index.esm.js" }, "./firestore/lite": { - "node": "./firestore/lite/dist/index.cjs.js", + "node": { + "require": "./firestore/lite/dist/index.cjs", + "import": "./firestore/lite/dist/index.esm.js" + }, "default": "./firestore/lite/dist/index.esm.js" }, "./functions": { - "node": "./functions/dist/index.cjs.js", + "node": { + "require": "./functions/dist/index.cjs", + "import": "./functions/dist/index.esm.js" + }, "default": "./functions/dist/index.esm.js" }, "./messaging": { - "node": "./messaging/dist/index.cjs.js", + "node": { + "require": "./messaging/dist/index.cjs", + "import": "./messaging/dist/index.esm.js" + }, "default": "./messaging/dist/index.esm.js" }, "./messaging/sw": { - "node": "./messaging/sw/dist/index.cjs.js", + "node": { + "require": "./messaging/sw/dist/index.cjs", + "import": "./messaging/sw/dist/index.esm.js" + }, "default": "./messaging/sw/dist/index.esm.js" }, "./performance": { - "node": "./performance/dist/index.cjs.js", + "node": { + "require": "./performance/dist/index.cjs", + "import": "./performance/dist/index.esm.js" + }, "default": "./performance/dist/index.esm.js" }, "./remote-config": { - "node": "./remote-config/dist/index.cjs.js", + "node": { + "require": "./remote-config/dist/index.cjs", + "import": "./remote-config/dist/index.esm.js" + }, "default": "./remote-config/dist/index.esm.js" }, "./storage": { - "node": "./storage/dist/index.cjs.js", + "node": { + "require": "./storage/dist/index.cjs", + "import": "./storage/dist/index.esm.js" + }, "default": "./storage/dist/index.esm.js" }, "./compat/analytics": { - "node": "./compat/analytics/dist/index.cjs.js", + "node": { + "require": "./compat/analytics/dist/index.cjs", + "import": "./compat/analytics/dist/index.esm.js" + }, "default": "./compat/analytics/dist/index.esm.js" }, "./compat/app": { - "node": "./compat/app/dist/index.cjs.js", + "node": { + "require": "./compat/app/dist/index.cjs", + "import": "./compat/app/dist/index.esm.js" + }, "default": "./compat/app/dist/index.esm.js" }, "./compat/app-check": { - "node": "./compat/app-check/dist/index.cjs.js", + "node": { + "require": "./compat/app-check/dist/index.cjs", + "import": "./compat/app-check/dist/index.esm.js" + }, "default": "./compat/app-check/dist/index.esm.js" }, "./compat/auth": { - "node": "./compat/auth/dist/index.cjs.js", + "node": { + "require": "./compat/auth/dist/index.cjs", + "import": "./compat/auth/dist/index.esm.js" + }, "default": "./compat/auth/dist/index.esm.js" }, "./compat/database": { - "node": "./compat/database/dist/index.cjs.js", + "node": { + "require": "./compat/database/dist/index.cjs", + "import": "./compat/database/dist/index.esm.js" + }, "default": "./compat/database/dist/index.esm.js" }, "./compat/firestore": { - "node": "./compat/firestore/dist/index.cjs.js", + "node": { + "require": "./compat/firestore/dist/index.cjs", + "import": "./compat/firestore/dist/index.esm.js" + }, "default": "./compat/firestore/dist/index.esm.js" }, "./compat/functions": { - "node": "./compat/functions/dist/index.cjs.js", + "node": { + "require": "./compat/functions/dist/index.cjs", + "import": "./compat/functions/dist/index.esm.js" + }, "default": "./compat/functions/dist/index.esm.js" }, "./compat/messaging": { - "node": "./compat/messaging/dist/index.cjs.js", + "node": { + "require": "./compat/messaging/dist/index.cjs", + "import": "./compat/messaging/dist/index.esm.js" + }, "default": "./compat/messaging/dist/index.esm.js" }, "./compat/performance": { - "node": "./compat/performance/dist/index.cjs.js", + "node": { + "require": "./compat/performance/dist/index.cjs", + "import": "./compat/performance/dist/index.esm.js" + }, "default": "./compat/performance/dist/index.esm.js" }, "./compat/remote-config": { - "node": "./compat/remote-config/dist/index.cjs.js", + "node": { + "require": "./compat/remote-config/dist/index.cjs", + "import": "./compat/remote-config/dist/index.esm.js" + }, "default": "./compat/remote-config/dist/index.esm.js" }, "./compat/storage": { - "node": "./compat/storage/dist/index.cjs.js", + "node": { + "require": "./compat/storage/dist/index.cjs", + "import": "./compat/storage/dist/index.esm.js" + }, "default": "./compat/storage/dist/index.esm.js" } }, @@ -194,5 +272,6 @@ "messaging", "messaging/sw", "database" - ] + ], + "type": "module" } diff --git a/packages-exp/firebase-exp/performance/package.json b/packages-exp/firebase-exp/performance/package.json index ad326e66470..d5fef2a2102 100644 --- a/packages-exp/firebase-exp/performance/package.json +++ b/packages-exp/firebase-exp/performance/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/performance", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/performance/index.d.ts" + "typings": "dist/performance/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/remote-config/package.json b/packages-exp/firebase-exp/remote-config/package.json index 86878ce0089..59559ee4973 100644 --- a/packages-exp/firebase-exp/remote-config/package.json +++ b/packages-exp/firebase-exp/remote-config/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/remote-config", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/remote-config/index.d.ts" + "typings": "dist/remote-config/index.d.ts", + "type": "module" } diff --git a/packages-exp/firebase-exp/storage/package.json b/packages-exp/firebase-exp/storage/package.json index 888a893701e..78c66914d69 100644 --- a/packages-exp/firebase-exp/storage/package.json +++ b/packages-exp/firebase-exp/storage/package.json @@ -1,7 +1,8 @@ { "name": "firebase-exp/storage", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "browser": "dist/index.esm.js", "module": "dist/index.esm.js", - "typings": "dist/storage/index.d.ts" + "typings": "dist/storage/index.d.ts", + "type": "module" }