Skip to content

Commit

Permalink
fix: fixed commonjs typings export mapping (#377)
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 a8ec2fc commit b115413
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": "Sapphire's piece loader.",
"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 @@ -26,7 +26,7 @@
"test": "vitest run",
"build": "tsup && concurrently \"yarn:postbuild:*\"",
"postbuild:internal": "node scripts/make-import.mjs",
"postbuild:types:cjs": "rollup-type-bundler -d dist/cjs",
"postbuild:types:cjs": "rollup-type-bundler -d dist/cjs -ot .cts",
"postbuild:types:esm": "rollup-type-bundler -d dist/esm -t .mts",
"typecheck": "tsc -b src",
"bump": "cliff-jumper",
Expand Down

0 comments on commit b115413

Please sign in to comment.