Skip to content

Commit

Permalink
fix: types not found issue (#26)
Browse files Browse the repository at this point in the history
* chore: remove unused file

* fix: change to export shared types
  • Loading branch information
yeonjuan committed Oct 1, 2023
1 parent c905b3f commit 5512546
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 115 deletions.
106 changes: 0 additions & 106 deletions newfile

This file was deleted.

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 5512546

Please sign in to comment.