Skip to content

Commit a66bb3c

Browse files
committed
Fix output filenames and exports
1 parent 7f9b120 commit a66bb3c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"exports": {
2020
".": {
2121
"types": "./index.d.ts",
22-
"import": "./index-esm.js",
23-
"require": "./index-cjs.js"
22+
"import": "./index.js",
23+
"require": "./index.cjs"
2424
},
2525
"./package.json": "./package.json"
2626
},
27-
"main": "./index-cjs.js",
28-
"module": "./index-esm.js",
27+
"main": "./index.cjs",
28+
"module": "./index.js",
2929
"types": "./index.d.ts",
3030
"scripts": {
3131
"postbuild": "node --no-warnings tools/postbuild.mjs",
@@ -75,4 +75,4 @@
7575
"engines": {
7676
"node": ">=18"
7777
}
78-
}
78+
}

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ export default {
1010
{
1111
format: 'esm',
1212
dir: 'dist',
13-
entryFileNames: 'index-esm.js',
13+
entryFileNames: 'index.js',
1414
plugins: [terser()],
1515
},
1616
{
1717
format: 'cjs',
1818
dir: 'dist',
19-
entryFileNames: 'index-cjs.js',
19+
entryFileNames: 'index.cjs',
2020
plugins: [terser()],
2121
},
2222
],

0 commit comments

Comments
 (0)