Skip to content

Commit

Permalink
fix: change to export shared types
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Oct 1, 2023
1 parent d2c4672 commit 03d83c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
},
"exports": {
".": {
"import": {
"types": "./build/mjs/index.d.ts",
"default": "./build/mjs/index.js"
},
"require": {
"types": "./build/cjs/index.d.ts",
"default": "./build/cjs/index.js"
}
"types": "./build/types/index.d.ts",
"import": "./build/mjs/index.js",
"require": "./build/cjs/index.js",
"default": "./build/mjs/index.js"
}
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"target": "es2022"
"target": "es2022",
"declarationDir": "build/types"
}
}

0 comments on commit 03d83c7

Please sign in to comment.