Skip to content

Commit 0c724ce

Browse files
committed
perf: enable fixed extension
1 parent 301394f commit 0c724ce

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"dist",
2020
"esm-shims.js"
2121
],
22-
"main": "./dist/index.js",
23-
"module": "./dist/index.js",
24-
"types": "./dist/index.d.ts",
22+
"main": "./dist/index.mjs",
23+
"module": "./dist/index.mjs",
24+
"types": "./dist/index.d.mts",
2525
"exports": {
26-
".": "./dist/index.js",
27-
"./config": "./dist/config.js",
28-
"./plugins": "./dist/plugins.js",
29-
"./run": "./dist/run.js",
26+
".": "./dist/index.mjs",
27+
"./config": "./dist/config.mjs",
28+
"./plugins": "./dist/plugins.mjs",
29+
"./run": "./dist/run.mjs",
3030
"./package.json": "./package.json"
3131
},
3232
"typesVersions": {
@@ -38,7 +38,7 @@
3838
}
3939
},
4040
"bin": {
41-
"tsdown": "./dist/run.js"
41+
"tsdown": "./dist/run.mjs"
4242
},
4343
"publishConfig": {
4444
"access": "public"

tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default defineConfig({
1212
},
1313
publint: true,
1414
exports: true,
15+
fixedExtension: true,
1516
onSuccess() {
1617
console.info('🙏 Build succeeded!')
1718
},

0 commit comments

Comments
 (0)