Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5512546

Browse files
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‎

Lines changed: 0 additions & 106 deletions
This file was deleted.

‎package.json‎

Lines changed: 4 additions & 8 deletions
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /