Skip to content

Commit

Permalink
fix: fixed commonjs typings export mapping (#718)
Browse files Browse the repository at this point in the history
* fix: fixed commonjs typings export mapping

* chore: change `cts` to `.cts`
  • Loading branch information
favna committed Jan 19, 2024
1 parent 3a1931b commit d10b4fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"description": "Discord bot framework built for advanced and amazing bots.",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
"types": "dist/cjs/index.d.ts",
"types": "dist/cjs/index.d.cts",
"exports": {
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
Expand All @@ -29,7 +29,7 @@
"bump": "cliff-jumper",
"check-update": "cliff-jumper --dry-run",
"prepack": "yarn build && concurrently \"yarn:prepack:*\"",
"prepack:cjs": "rollup-type-bundler -d dist/cjs",
"prepack:cjs": "rollup-type-bundler -d dist/cjs -ot .cts",
"prepack:esm": "rollup-type-bundler -d dist/esm -t .mts"
},
"dependencies": {
Expand Down

0 comments on commit d10b4fa

Please sign in to comment.