Skip to content

Commit

Permalink
Update export types (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Craftsman authored Oct 26, 2023
1 parent d334216 commit c5f54d2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@
"exports": {
"./package.json": "./package.json",
"./react": {
"types": "./react/konsta-react.d.ts",
"require": "./react/cjs/konsta-react.js",
"import": "./react/esm/konsta-react.js"
},
"./vue": {
"types": "./vue/konsta-vue.d.ts",
"require": "./vue/konsta-vue.js",
"import": "./vue/konsta-vue.js"
},
"./svelte": {
"types": "./svelte/konsta-svelte.d.ts",
"import": "./svelte/konsta-svelte.js"
},
"./config": "./config.js",
Expand Down
3 changes: 2 additions & 1 deletion package/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"type": "module",
"exports": {
".": {
"types": "./konsta-react.d.ts",
"import": "./esm/konsta-react.js",
"require": "./cjs/konsta-react.js"
}
}
}
}
3 changes: 2 additions & 1 deletion package/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"type": "module",
"exports": {
".": {
"types": "./konsta-svelte.d.ts",
"import": "./konsta-svelte.js"
}
}
}
}
3 changes: 2 additions & 1 deletion package/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"type": "module",
"exports": {
".": {
"types": "./konsta-vue.d.ts",
"vue": "./konsta-vue.js",
"import": "./konsta-vue.js",
"require": "./konsta-vue.js"
}
}
}
}
2 changes: 1 addition & 1 deletion src/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"private": true,
"jsnext:main": "./konsta-react.js",
"module": "./konsta-react.js"
}
}
3 changes: 2 additions & 1 deletion src/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "konsta/svelte",
"private": true,
"jsnext:main": "./konsta-svelte.js",
"types": "./konsta-svelte.d.ts",
"module": "./konsta-svelte.js",
"svelte": "./konsta-svelte.js"
}
}

0 comments on commit c5f54d2

Please sign in to comment.