From 666e7376d5a4e93d48184155c34aec1d115eaf0f Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Tue, 6 Feb 2024 15:10:31 -0800 Subject: [PATCH] update extensions --- package.json | 8 ++++---- tsup.config.ts | 7 +------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 33a9e68..1ab7f0e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "import": "./dist/index.d.ts" }, "require": "./dist/index.cjs", - "import": "./dist/index.mjs" + "import": "./dist/index.js" }, "./client": { "types": { @@ -21,11 +21,11 @@ "import": "./dist/client/index.d.ts" }, "require": "./dist/client/index.cjs", - "import": "./dist/client/index.mjs" + "import": "./dist/client/index.js" } }, - "main": "./dist/index.mjs", - "module": "./dist/index.mjs", + "main": "./dist/index.cjs", + "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", diff --git a/tsup.config.ts b/tsup.config.ts index 4c2b48e..91385b5 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -6,10 +6,5 @@ export default defineConfig({ splitting: false, clean: true, external: ['#app', '#imports', /@trpc\/client/, /@trpc\/server/], - dts: true, - outExtension ({ format }) { - return { - js: format === 'esm' ? '.mjs' : `.${format}` - } - } + dts: true })