Skip to content

Commit

Permalink
fix: mjs exports for vue and others (#3245)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Sep 11, 2023
1 parent 9efe48c commit 1c7f1e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"declaration": true,
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/tolgee.cjs.js",
"import": "./dist/tolgee.esm.mjs"
"svelte": "./dist/tolgee.esm.mjs",
"module": "./dist/tolgee.esm.js",
"import": "./dist/tolgee.esm.js",
"types": "./lib/index.d.ts"
},
"./package.json": "./package.json"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/i18next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
".": {
"types": "./lib/index.d.ts",
"require": "./dist/tolgee-i18next.cjs.js",
"import": "./dist/tolgee-i18next.esm.mjs"
"svelte": "./dist/tolgee-i18next.esm.mjs",
"module": "./dist/tolgee-i18next.esm.js",
"import": "./dist/tolgee-i18next.esm.js"
},
"./package.json": "./package.json"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
".": {
"types": "./lib/index.d.ts",
"require": "./dist/tolgee-vue.cjs.js",
"import": "./dist/tolgee-vue.esm.mjs"
"module": "./dist/tolgee-vue.esm.js",
"import": "./dist/tolgee-vue.esm.js"
},
"./package.json": "./package.json"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/web/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"exports": {
".": {
"require": "./../dist/tolgee-in-context-tools.cjs.js",
"import": "./../dist/tolgee-in-context-tools.esm.js",
"svelte": "./../dist/tolgee-in-context-tools.esm.mjs",
"module": "./../dist/tolgee-in-context-tools.esm.js",
"import": "./../dist/tolgee-in-context-tools.esm.js",
"types": "./../types/index.d.ts"
},
"./package.json": "./package.json"
Expand Down

0 comments on commit 1c7f1e5

Please sign in to comment.