Skip to content

Commit 60bfb92

Browse files
committed
build: update how the typings are exported
1 parent 897873a commit 60bfb92

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.changeset/strong-moons-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tiptap/draftjs-to-tiptap": patch
3+
---
4+
5+
Update how the typings are exported for the package

bun.lockb

-9.79 KB
Binary file not shown.

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@
1010
},
1111
"exports": {
1212
".": {
13+
"types": {
14+
"import": "./dist/index.d.ts",
15+
"require": "./dist/index.d.cts"
16+
},
1317
"import": "./dist/index.js",
14-
"require": "./dist/index.cjs",
15-
"types": "./dist/index.d.ts"
18+
"require": "./dist/index.cjs"
1619
}
1720
},
1821
"files": [
19-
"dist"
22+
"dist",
23+
"src"
2024
],
2125
"scripts": {
2226
"changeset": "changeset",
@@ -27,9 +31,9 @@
2731
"build": "tsup src/index.ts --format esm,cjs --dts"
2832
},
2933
"devDependencies": {
30-
"@changesets/cli": "^2.27.7",
34+
"@changesets/cli": "^2.27.11",
3135
"@types/bun": "latest",
32-
"tsup": "^8.1.0"
36+
"tsup": "^8.3.5"
3337
},
3438
"peerDependencies": {
3539
"typescript": "^5.4.5"

0 commit comments

Comments
 (0)