Skip to content

Commit d10b4fa

Browse files
authoredJan 19, 2024
fix: fixed commonjs typings export mapping (#718)
* fix: fixed commonjs typings export mapping * chore: change `cts` to `.cts`
1 parent 3a1931b commit d10b4fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"description": "Discord bot framework built for advanced and amazing bots.",
55
"main": "dist/cjs/index.cjs",
66
"module": "dist/esm/index.mjs",
7-
"types": "dist/cjs/index.d.ts",
7+
"types": "dist/cjs/index.d.cts",
88
"exports": {
99
"import": {
1010
"types": "./dist/esm/index.d.mts",
1111
"default": "./dist/esm/index.mjs"
1212
},
1313
"require": {
14-
"types": "./dist/cjs/index.d.ts",
14+
"types": "./dist/cjs/index.d.cts",
1515
"default": "./dist/cjs/index.cjs"
1616
}
1717
},
@@ -29,7 +29,7 @@
2929
"bump": "cliff-jumper",
3030
"check-update": "cliff-jumper --dry-run",
3131
"prepack": "yarn build && concurrently \"yarn:prepack:*\"",
32-
"prepack:cjs": "rollup-type-bundler -d dist/cjs",
32+
"prepack:cjs": "rollup-type-bundler -d dist/cjs -ot .cts",
3333
"prepack:esm": "rollup-type-bundler -d dist/esm -t .mts"
3434
},
3535
"dependencies": {

0 commit comments

Comments
 (0)
Please sign in to comment.