Skip to content

Commit

Permalink
fix: move types condition to the top of exports
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed May 31, 2022
1 parent f219048 commit 99a9f90
Show file tree
Hide file tree
Showing 30 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion packages/analytics-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"esm5": "dist/esm/index.esm.js",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"require": "./dist/index.cjs.js",
"esm5": "./dist/esm/index.esm.js",
"types": "./dist/src/index.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"esm5": "dist/esm/index.esm.js",
"exports": {
".": {
"types": "./dist/analytics-public.d.ts",
"require": "./dist/index.cjs.js",
"esm5": "./dist/esm/index.esm.js",
"types": "./dist/analytics-public.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/app-check-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"esm5": "dist/esm/index.esm.js",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"require": "./dist/index.cjs.js",
"esm5": "./dist/esm/index.esm.js",
"types": "./dist/src/index.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/app-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"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",
"types": "./dist/app-check-public.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/app-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"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",
"liteesm5": "./dist/index.lite.esm5.js",
"types": "./dist/app-compat-public.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"esm5": "dist/esm/index.esm5.js",
"exports": {
".": {
"types": "./dist/app-public.d.ts",
"require": "./dist/index.cjs.js",
"esm5": "./dist/esm/index.esm5.js",
"types": "./dist/app-public.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
6 changes: 3 additions & 3 deletions packages/auth-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"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",
"types": "./dist/auth-compat/index.node.d.ts"
"require": "./dist/index.node.cjs.js"
},
"esm5": "./dist/index.esm.js",
"types": "./dist/auth-compat/index.d.ts",
"default": "./dist/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
12 changes: 6 additions & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"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",
"types": "./dist/node/index.d.ts"
"require": "./dist/node/index.js"
},
"react-native": {
"types": "./dist/rn/index.rn.d.ts",
Expand All @@ -30,7 +31,6 @@
"default": "./dist/index.webworker.esm5.js"
},
"esm5": "./dist/esm5/index.js",
"types": "./dist/auth-public.d.ts",
"default": "./dist/esm2017/index.js"
},
"./cordova": {
Expand All @@ -42,10 +42,11 @@
"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",
"types": "./dist/node/internal/index.d.ts"
"require": "./dist/node/internal.js"
},
"react-native": {
"types": "./dist/rn/internal/index.d.ts",
Expand All @@ -56,7 +57,6 @@
"default": "./dist/cordova/internal.js"
},
"esm5": "./dist/esm5/internal.js",
"types": "./dist/internal/index.d.ts",
"default": "./dist/esm2017/internal.js"
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"esm5": "dist/esm/index.esm5.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"esm5": "./dist/esm/index.esm5.js",
"types": "./dist/index.d.ts",
"default": "./dist/esm/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
10 changes: 5 additions & 5 deletions packages/database-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
],
"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",
"types": "./dist/database-compat/src/index.node.d.ts"
"require": "./dist/index.js"
},
"esm5": "./dist/index.esm5.js",
"types": "./dist/database-compat/src/index.d.ts",
"default": "./dist/index.esm2017.js"
},
"./standalone": {
"node": "./dist/index.standalone.js",
"types": "./dist/database-compat/src/index.standalone.d.ts"
"types": "./dist/database-compat/src/index.standalone.d.ts",
"node": "./dist/index.standalone.js"
},
"./package.json": "./package.json"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"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"
},
"esm5": "./dist/index.esm5.js",
"standalone": "./dist/index.standalone.js",
"types": "./dist/public.d.ts",
"default": "./dist/index.esm2017.js"
},
"./package.json": "./package.json"
Expand Down
Loading

0 comments on commit 99a9f90

Please sign in to comment.