Skip to content

Commit

Permalink
fix: type definition files in exports field (fix nhn#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jun 2, 2023
1 parent b53e765 commit 5ff4d04
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions apps/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
"module": "./dist/toastui-calendar.mjs",
"exports": {
".": {
"import": "./dist/toastui-calendar.mjs",
"require": "./dist/toastui-calendar.js"
"import": {
"types": "./types/index.d.ts",
"default": "./dist/toastui-calendar.mjs"
},
"require": {
"types": "./types/index.d.ts",
"default": "./dist/toastui-calendar.js"
}
},
"./ie11": "./dist/toastui-calendar.ie11.js",
"./esm": "./dist/toastui-calendar.mjs",
Expand Down
10 changes: 8 additions & 2 deletions apps/react-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@
"types": "./types/index.d.ts",
"exports": {
".": {
"import": "./dist/toastui-react-calendar.mjs",
"require": "./dist/toastui-react-calendar.js"
"import": {
"types": "./types/index.d.ts",
"default": "./dist/toastui-react-calendar.mjs"
},
"require": {
"types": "./types/index.d.ts",
"default": "./dist/toastui-react-calendar.js"
}
},
"./ie11": "./dist/toastui-react-calendar.ie11.js",
"./esm": "./dist/toastui-react-calendar.mjs"
Expand Down
10 changes: 8 additions & 2 deletions apps/vue-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
"module": "./dist/toastui-vue-calendar.mjs",
"exports": {
".": {
"import": "./dist/toastui-vue-calendar.mjs",
"require": "./dist/toastui-vue-calendar.js"
"import": {
"types": "./index.d.ts",
"default": "./dist/toastui-vue-calendar.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./dist/toastui-vue-calendar.js"
}
},
"./ie11": "./dist/toastui-vue-calendar.ie11.js",
"./esm": "./dist/toastui-vue-calendar.mjs"
Expand Down

0 comments on commit 5ff4d04

Please sign in to comment.