From 7bb9164399fb4db4fc115cfb3526fe71f2beb56f Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Sat, 27 Apr 2024 10:17:23 +0000 Subject: [PATCH] Fix ESM types + fix rollup config extension. --- package.json | 2 +- rollup.config.js => rollup.config.mjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) rename rollup.config.js => rollup.config.mjs (80%) diff --git a/package.json b/package.json index b488e026..1562a03c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "./dist/index.js", "exports": { "require": "./dist/index.js", - "default": "./dist/index-esm.mjs" + "default": "./dist/index.js" }, "publishConfig": { "access": "public" diff --git a/rollup.config.js b/rollup.config.mjs similarity index 80% rename from rollup.config.js rename to rollup.config.mjs index e0ed737a..b6fa6f2d 100644 --- a/rollup.config.js +++ b/rollup.config.mjs @@ -6,7 +6,6 @@ export default { resolve({}), ], output: [ - { format: 'esm', file: './dist/index-esm.mjs' }, { format: 'cjs', file: './dist/index.js' }, ], external: [],