diff --git a/.changeset/eighty-beds-rule.md b/.changeset/eighty-beds-rule.md new file mode 100644 index 00000000000..2977a97c25c --- /dev/null +++ b/.changeset/eighty-beds-rule.md @@ -0,0 +1,34 @@ +--- +"@firebase/analytics-compat": patch +"@firebase/analytics": patch +"@firebase/app-check-compat": patch +"@firebase/app-check": patch +"@firebase/app-compat": patch +"@firebase/app": patch +"@firebase/auth-compat": patch +"@firebase/auth": patch +"@firebase/component": patch +"@firebase/database-compat": patch +"@firebase/database": patch +"firebase": patch +"@firebase/firestore-compat": patch +"@firebase/firestore": patch +"@firebase/functions-compat": patch +"@firebase/functions": patch +"@firebase/installations-compat": patch +"@firebase/installations": patch +"@firebase/logger": patch +"@firebase/messaging-compat": patch +"@firebase/messaging": patch +"@firebase/performance-compat": patch +"@firebase/performance": patch +"@firebase/remote-config-compat": patch +"@firebase/remote-config": patch +"@firebase/storage-compat": patch +"@firebase/storage": patch +"@firebase/template": patch +"@firebase/util": patch +"@firebase/webchannel-wrapper": patch +--- + +fix: add type declarations to exports field diff --git a/packages/analytics-compat/package.json b/packages/analytics-compat/package.json index 5c94458b819..e65a0a10d6d 100644 --- a/packages/analytics-compat/package.json +++ b/packages/analytics-compat/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/analytics/package.json b/packages/analytics/package.json index a8350fd96bc..8e2c1de6ccc 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/analytics-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/app-check-compat/package.json b/packages/app-check-compat/package.json index 7dad8d88cc2..c98d6333635 100644 --- a/packages/app-check-compat/package.json +++ b/packages/app-check-compat/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/app-check/package.json b/packages/app-check/package.json index 94869d55c23..5776087bca0 100644 --- a/packages/app-check/package.json +++ b/packages/app-check/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/app-check-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/app-compat/package.json b/packages/app-compat/package.json index 2741f36db4f..5b455b160bc 100644 --- a/packages/app-compat/package.json +++ b/packages/app-compat/package.json @@ -11,6 +11,7 @@ "liteesm5": "dist/index.lite.esm5.js", "exports": { ".": { + "types": "./dist/app-compat-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "lite": "./dist/index.lite.js", diff --git a/packages/app/package.json b/packages/app/package.json index ffd2bf6f52d..4604f86730d 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/app-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/auth-compat/package.json b/packages/auth-compat/package.json index 994b02aaad7..c01143e786c 100644 --- a/packages/auth-compat/package.json +++ b/packages/auth-compat/package.json @@ -9,7 +9,9 @@ "esm5": "dist/index.esm.js", "exports": { ".": { + "types": "./dist/auth-compat/index.d.ts", "node": { + "types": "./dist/auth-compat/index.node.d.ts", "import": "./dist/esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" }, diff --git a/packages/auth/package.json b/packages/auth/package.json index 70a8794a583..420a57680cc 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -12,25 +12,50 @@ "esm5": "dist/esm5/index.js", "exports": { ".": { + "types": "./dist/auth-public.d.ts", "node": { + "types": "./dist/node/index.d.ts", "import": "./dist/node-esm/index.js", "require": "./dist/node/index.js" }, - "react-native": "./dist/rn/index.js", - "cordova": "./dist/cordova/index.js", - "webworker": "./dist/index.webworker.esm5.js", + "react-native": { + "types": "./dist/rn/index.rn.d.ts", + "default": "./dist/rn/index.js" + }, + "cordova": { + "types": "./dist/cordova/index.cordova.d.ts", + "default": "./dist/cordova/index.js" + }, + "webworker": { + "types": "./dist/index.webworker.d.ts", + "default": "./dist/index.webworker.esm5.js" + }, "esm5": "./dist/esm5/index.js", "default": "./dist/esm2017/index.js" }, - "./cordova": "./dist/cordova/index.js", - "./react-native": "./dist/rn/index.js", + "./cordova": { + "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": { + "types": "./dist/node/internal/index.d.ts", "import": "./dist/node-esm/internal.js", "require": "./dist/node/internal.js" }, - "react-native": "./dist/rn/internal.js", - "cordova": "./dist/cordova/internal.js", + "react-native": { + "types": "./dist/rn/internal/index.d.ts", + "default": "./dist/rn/internal.js" + }, + "cordova": { + "types": "./dist/cordova/internal/index.d.ts", + "default": "./dist/cordova/internal.js" + }, "esm5": "./dist/esm5/internal.js", "default": "./dist/esm2017/internal.js" }, diff --git a/packages/component/package.json b/packages/component/package.json index 823061475f3..6750de51d0b 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/database-compat/package.json b/packages/database-compat/package.json index a146b31f1f6..00c7bda9553 100644 --- a/packages/database-compat/package.json +++ b/packages/database-compat/package.json @@ -15,7 +15,9 @@ ], "exports": { ".": { + "types": "./dist/database-compat/src/index.d.ts", "node": { + "types": "./dist/database-compat/src/index.node.d.ts", "import": "./dist/node-esm/index.js", "require": "./dist/index.js" }, @@ -23,6 +25,7 @@ "default": "./dist/index.esm2017.js" }, "./standalone": { + "types": "./dist/database-compat/src/index.standalone.d.ts", "node": "./dist/index.standalone.js" }, "./package.json": "./package.json" diff --git a/packages/database/package.json b/packages/database/package.json index b0842710fba..db99118f1a6 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -10,6 +10,7 @@ "standalone": "dist/index.standalone.js", "exports": { ".": { + "types": "./dist/public.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/firebase/package.json b/packages/firebase/package.json index 9c3350875ff..98acfb4fd2e 100644 --- a/packages/firebase/package.json +++ b/packages/firebase/package.json @@ -24,6 +24,7 @@ ], "exports": { "./analytics": { + "types": "./analytics/dist/analytics/index.d.ts", "node": { "require": "./analytics/dist/index.cjs.js", "import": "./analytics/dist/index.mjs" @@ -31,6 +32,7 @@ "default": "./analytics/dist/index.esm.js" }, "./app": { + "types": "./app/dist/app/index.d.ts", "node": { "require": "./app/dist/index.cjs.js", "import": "./app/dist/index.mjs" @@ -38,6 +40,7 @@ "default": "./app/dist/index.esm.js" }, "./app-check": { + "types": "./app-check/dist/app-check/index.d.ts", "node": { "require": "./app-check/dist/index.cjs.js", "import": "./app-check/dist/index.mjs" @@ -45,6 +48,7 @@ "default": "./app-check/dist/index.esm.js" }, "./auth": { + "types": "./auth/dist/auth/index.d.ts", "node": { "require": "./auth/dist/index.cjs.js", "import": "./auth/dist/index.mjs" @@ -52,6 +56,7 @@ "default": "./auth/dist/index.esm.js" }, "./auth/cordova": { + "types": "./auth/cordova/dist/auth/cordova/index.d.ts", "node": { "require": "./auth/cordova/dist/index.cjs.js", "import": "./auth/cordova/dist/index.mjs" @@ -59,6 +64,7 @@ "default": "./auth/cordova/dist/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" @@ -66,6 +72,7 @@ "default": "./auth/react-native/dist/index.esm.js" }, "./database": { + "types": "./database/dist/database/index.d.ts", "node": { "require": "./database/dist/index.cjs.js", "import": "./database/dist/index.mjs" @@ -73,6 +80,7 @@ "default": "./database/dist/index.esm.js" }, "./firestore": { + "types": "./firestore/dist/firestore/index.d.ts", "node": { "require": "./firestore/dist/index.cjs.js", "import": "./firestore/dist/index.mjs" @@ -80,6 +88,7 @@ "default": "./firestore/dist/index.esm.js" }, "./firestore/lite": { + "types": "./firestore/lite/dist/firestore/lite/index.d.ts", "node": { "require": "./firestore/lite/dist/index.cjs.js", "import": "./firestore/lite/dist/index.mjs" @@ -87,6 +96,7 @@ "default": "./firestore/lite/dist/index.esm.js" }, "./functions": { + "types": "./functions/dist/functions/index.d.ts", "node": { "require": "./functions/dist/index.cjs.js", "import": "./functions/dist/index.mjs" @@ -94,6 +104,7 @@ "default": "./functions/dist/index.esm.js" }, "./messaging": { + "types": "./messaging/dist/messaging/index.d.ts", "node": { "require": "./messaging/dist/index.cjs.js", "import": "./messaging/dist/index.mjs" @@ -101,6 +112,7 @@ "default": "./messaging/dist/index.esm.js" }, "./messaging/sw": { + "types": "./messaging/sw/dist/messaging/sw/index.d.ts", "node": { "require": "./messaging/sw/dist/index.cjs.js", "import": "./messaging/sw/dist/index.mjs" @@ -108,6 +120,7 @@ "default": "./messaging/sw/dist/index.esm.js" }, "./performance": { + "types": "./performance/dist/performance/index.d.ts", "node": { "require": "./performance/dist/index.cjs.js", "import": "./performance/dist/index.mjs" @@ -115,6 +128,7 @@ "default": "./performance/dist/index.esm.js" }, "./remote-config": { + "types": "./remote-config/dist/remote-config/index.d.ts", "node": { "require": "./remote-config/dist/index.cjs.js", "import": "./remote-config/dist/index.mjs" @@ -122,6 +136,7 @@ "default": "./remote-config/dist/index.esm.js" }, "./storage": { + "types": "./storage/dist/storage/index.d.ts", "node": { "require": "./storage/dist/index.cjs.js", "import": "./storage/dist/index.mjs" @@ -129,6 +144,7 @@ "default": "./storage/dist/index.esm.js" }, "./compat/analytics": { + "types": "./compat/analytics/dist/compat/analytics/index.d.ts", "node": { "require": "./compat/analytics/dist/index.cjs.js", "import": "./compat/analytics/dist/index.mjs" @@ -136,6 +152,7 @@ "default": "./compat/analytics/dist/index.esm.js" }, "./compat/app": { + "types": "./compat/app/dist/compat/app/index.d.ts", "node": { "require": "./compat/app/dist/index.cjs.js", "import": "./compat/app/dist/index.mjs" @@ -143,6 +160,7 @@ "default": "./compat/app/dist/index.esm.js" }, "./compat/app-check": { + "types": "./compat/app-check/dist/compat/app-check/index.d.ts", "node": { "require": "./compat/app-check/dist/index.cjs.js", "import": "./compat/app-check/dist/index.mjs" @@ -150,6 +168,7 @@ "default": "./compat/app-check/dist/index.esm.js" }, "./compat/auth": { + "types": "./compat/auth/dist/compat/auth/index.d.ts", "node": { "require": "./compat/auth/dist/index.cjs.js", "import": "./compat/auth/dist/index.mjs" @@ -157,6 +176,7 @@ "default": "./compat/auth/dist/index.esm.js" }, "./compat/database": { + "types": "./compat/database/dist/compat/database/index.d.ts", "node": { "require": "./compat/database/dist/index.cjs.js", "import": "./compat/database/dist/index.mjs" @@ -164,6 +184,7 @@ "default": "./compat/database/dist/index.esm.js" }, "./compat/firestore": { + "types": "./compat/firestore/dist/compat/firestore/index.d.ts", "node": { "require": "./compat/firestore/dist/index.cjs.js", "import": "./compat/firestore/dist/index.mjs" @@ -171,6 +192,7 @@ "default": "./compat/firestore/dist/index.esm.js" }, "./compat/functions": { + "types": "./compat/functions/dist/compat/functions/index.d.ts", "node": { "require": "./compat/functions/dist/index.cjs.js", "import": "./compat/functions/dist/index.mjs" @@ -178,6 +200,7 @@ "default": "./compat/functions/dist/index.esm.js" }, "./compat/messaging": { + "types": "./compat/messaging/dist/compat/messaging/index.d.ts", "node": { "require": "./compat/messaging/dist/index.cjs.js", "import": "./compat/messaging/dist/index.mjs" @@ -185,6 +208,7 @@ "default": "./compat/messaging/dist/index.esm.js" }, "./compat/performance": { + "types": "./compat/performance/dist/compat/performance/index.d.ts", "node": { "require": "./compat/performance/dist/index.cjs.js", "import": "./compat/performance/dist/index.mjs" @@ -192,6 +216,7 @@ "default": "./compat/performance/dist/index.esm.js" }, "./compat/remote-config": { + "types": "./compat/remote-config/dist/compat/remote-config/index.d.ts", "node": { "require": "./compat/remote-config/dist/index.cjs.js", "import": "./compat/remote-config/dist/index.mjs" @@ -199,6 +224,7 @@ "default": "./compat/remote-config/dist/index.esm.js" }, "./compat/storage": { + "types": "./compat/storage/dist/compat/storage/index.d.ts", "node": { "require": "./compat/storage/dist/index.cjs.js", "import": "./compat/storage/dist/index.mjs" diff --git a/packages/firestore-compat/package.json b/packages/firestore-compat/package.json index d7140c0b604..9d230d856ab 100644 --- a/packages/firestore-compat/package.json +++ b/packages/firestore-compat/package.json @@ -10,6 +10,7 @@ "esm5": "dist/index.esm5.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/firestore/package.json b/packages/firestore/package.json index d2f31e5a93e..28ae926b780 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -46,6 +46,7 @@ }, "exports": { ".": { + "types": "./dist/index.d.ts", "node": { "require": "./dist/index.node.cjs.js", "import": "./dist/index.node.mjs" @@ -55,6 +56,7 @@ "default": "./dist/index.esm2017.js" }, "./lite": { + "types": "./dist/lite/index.d.ts", "node": { "require": "./dist/lite/index.node.cjs.js", "import": "./dist/lite/index.node.mjs" diff --git a/packages/functions-compat/package.json b/packages/functions-compat/package.json index 6667ecce49c..206e8fac6c3 100644 --- a/packages/functions-compat/package.json +++ b/packages/functions-compat/package.json @@ -9,6 +9,7 @@ "esm5": "dist/index.esm5.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/functions/package.json b/packages/functions/package.json index 440e1ac897c..3f2d10d12c2 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -9,6 +9,7 @@ "esm5": "dist/index.esm.js", "exports": { ".": { + "types": "./dist/functions-public.d.ts", "node": { "import": "./dist/esm-node/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/installations-compat/package.json b/packages/installations-compat/package.json index ce0713f684a..10427f222a3 100644 --- a/packages/installations-compat/package.json +++ b/packages/installations-compat/package.json @@ -8,13 +8,14 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" }, "./package.json": "./package.json" }, - "typings": "dist/installations-compat.d.ts", + "typings": "dist/src/index.d.ts", "license": "Apache-2.0", "files": [ "dist" diff --git a/packages/installations/package.json b/packages/installations/package.json index 9236c0e5c58..f17792ba370 100644 --- a/packages/installations/package.json +++ b/packages/installations/package.json @@ -8,6 +8,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/installations-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/logger/package.json b/packages/logger/package.json index d1609a6e1b2..dd9089d73e1 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -8,6 +8,7 @@ "esm5": "dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/messaging-compat/package.json b/packages/messaging-compat/package.json index 048b7479c55..845af43e0b8 100644 --- a/packages/messaging-compat/package.json +++ b/packages/messaging-compat/package.json @@ -10,6 +10,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "node": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/messaging/package.json b/packages/messaging/package.json index 3e476e875d3..736c0127c9f 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -11,6 +11,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/index-public.d.ts", "node": "./dist/index.cjs.js", "browser": "./dist/esm/index.esm2017.js", "module": "./dist/esm/index.esm2017.js", @@ -18,6 +19,7 @@ "default": "./dist/index.cjs.js" }, "./sw": { + "types": "./dist/sw/index-public.d.ts", "node": "./dist/index.sw.cjs", "default": "./dist/index.sw.esm2017.js" }, diff --git a/packages/performance-compat/package.json b/packages/performance-compat/package.json index bab6dee864f..32e858b1ed0 100644 --- a/packages/performance-compat/package.json +++ b/packages/performance-compat/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/performance/package.json b/packages/performance/package.json index 68cabb68a76..d74235644a5 100644 --- a/packages/performance/package.json +++ b/packages/performance/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/remote-config-compat/package.json b/packages/remote-config-compat/package.json index e6d1725d9cd..39fd56f2719 100644 --- a/packages/remote-config-compat/package.json +++ b/packages/remote-config-compat/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index 57972fefb46..0e2a9152929 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -9,6 +9,7 @@ "esm5": "dist/esm/index.esm.js", "exports": { ".": { + "types": "./dist/remote-config-public.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/storage-compat/package.json b/packages/storage-compat/package.json index 0af1a5aa0f5..6f9a98699f9 100644 --- a/packages/storage-compat/package.json +++ b/packages/storage-compat/package.json @@ -9,6 +9,7 @@ "esm5": "./dist/esm/index.esm5.js", "exports": { ".": { + "types": "./dist/src/index.d.ts", "require": "./dist/index.cjs.js", "esm5": "./dist/esm/index.esm5.js", "default": "./dist/esm/index.esm2017.js" diff --git a/packages/storage/package.json b/packages/storage/package.json index 561f15ef80c..97551159bf7 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -9,6 +9,7 @@ "esm5": "dist/index.esm5.js", "exports": { ".": { + "types": "./dist/storage-public.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "default": "./dist/index.node.cjs.js" diff --git a/packages/template/package.json b/packages/template/package.json index 64f4ff2a017..2fccf55ab91 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -10,6 +10,7 @@ "esm5": "dist/index.esm5.js", "exports": { ".": { + "types": "./dist/index.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/util/package.json b/packages/util/package.json index b5258b70eec..2c062f85c27 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -9,6 +9,7 @@ "esm5": "dist/index.esm5.js", "exports": { ".": { + "types": "./dist/util-public.d.ts", "node": { "import": "./dist/node-esm/index.node.esm.js", "require": "./dist/index.node.cjs.js" diff --git a/packages/webchannel-wrapper/package.json b/packages/webchannel-wrapper/package.json index 7c405e91182..349549058e5 100644 --- a/packages/webchannel-wrapper/package.json +++ b/packages/webchannel-wrapper/package.json @@ -8,6 +8,7 @@ "esm5": "dist/index.esm.js", "exports": { ".": { + "types": "./src/index.d.ts", "require": "./dist/index.js", "esm5": "./dist/index.esm.js", "default": "./dist/index.esm2017.js"