Skip to content

Commit 054a862

Browse files
fix: build types
1 parent 8bfdae6 commit 054a862

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.releaserc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ plugins:
5555
hasChanged: true
5656
numMatches: 1
5757
numReplacements: 1
58+
- file: "./lib/index.d.cts"
59+
hasChanged: false
60+
numMatches: 0
61+
numReplacements: 0
62+
- file: "./lib/index.d.mts"
63+
hasChanged: false
64+
numMatches: 0
65+
numReplacements: 0
5866
- file: "./lib/index.mjs"
5967
hasChanged: true
6068
numMatches: 1

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@
3434
"Jonas Kello"
3535
],
3636
"exports": {
37+
"types": {
38+
"import": "./lib/index.d.mts",
39+
"require": "./lib/index.d.cts"
40+
},
3741
"import": "./lib/index.mjs",
3842
"require": "./lib/index.cjs"
3943
},
4044
"main": "lib/index.cjs",
45+
"types": "lib/index.d.cts",
4146
"files": [
4247
"lib/",
4348
"package.json",

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"rootDir": "src",
5-
"declaration": false
5+
"declaration": true
66
},
77
"include": ["src", "typings"]
88
}

0 commit comments

Comments
 (0)