Skip to content

Commit 5512546

Browse files
authored
fix: types not found issue (#26)
* chore: remove unused file * fix: change to export shared types
1 parent c905b3f commit 5512546

File tree

3 files changed

+6
-115
lines changed

3 files changed

+6
-115
lines changed

newfile

-106
This file was deleted.

package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@
1818
},
1919
"exports": {
2020
".": {
21-
"import": {
22-
"types": "./build/mjs/index.d.ts",
23-
"default": "./build/mjs/index.js"
24-
},
25-
"require": {
26-
"types": "./build/cjs/index.d.ts",
27-
"default": "./build/cjs/index.js"
28-
}
21+
"types": "./build/types/index.d.ts",
22+
"import": "./build/mjs/index.js",
23+
"require": "./build/cjs/index.js",
24+
"default": "./build/mjs/index.js"
2925
}
3026
},
3127
"repository": {

tsconfig-base.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"sourceMap": true,
2121
"strict": true,
2222
"skipLibCheck": true,
23-
"target": "es2022"
23+
"target": "es2022",
24+
"declarationDir": "build/types"
2425
}
2526
}

0 commit comments

Comments
 (0)