Skip to content

Commit

Permalink
fix: build types
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Mar 14, 2024
1 parent 8bfdae6 commit 054a862
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ plugins:
hasChanged: true
numMatches: 1
numReplacements: 1
- file: "./lib/index.d.cts"
hasChanged: false
numMatches: 0
numReplacements: 0
- file: "./lib/index.d.mts"
hasChanged: false
numMatches: 0
numReplacements: 0
- file: "./lib/index.mjs"
hasChanged: true
numMatches: 1
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@
"Jonas Kello"
],
"exports": {
"types": {
"import": "./lib/index.d.mts",
"require": "./lib/index.d.cts"
},
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"main": "lib/index.cjs",
"types": "lib/index.d.cts",
"files": [
"lib/",
"package.json",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"declaration": false
"declaration": true
},
"include": ["src", "typings"]
}

0 comments on commit 054a862

Please sign in to comment.