change file names and extensions

This commit is contained in:
Percs 2024-07-10 22:34:00 -05:00
parent 36bef24bdc
commit 6a54532e1d
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@
], ],
"exports": { "exports": {
".": { ".": {
"import": "./dist/module.js", "import": "./dist/index.mjs",
"require": "./dist/index.js", "require": "./dist/index.js",
"types": "./dist/index.d.ts" "types": "./dist/index.d.ts"
}, },

View file

@ -30,7 +30,7 @@ const configs = [
{ {
input: './src/index.ts', input: './src/index.ts',
output: { output: {
file: 'dist/module.js', file: 'dist/index.mjs',
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
exports: 'named', exports: 'named',