diff --git a/default/package.json b/default/package.json index d233df5..3dc17a9 100644 --- a/default/package.json +++ b/default/package.json @@ -17,7 +17,6 @@ ".": "./dist/index.mjs", "./package.json": "./package.json" }, - "types": "./dist/index.d.mts", "files": [ "dist" ], diff --git a/minimal/package.json b/minimal/package.json index 3557733..31ba562 100644 --- a/minimal/package.json +++ b/minimal/package.json @@ -8,7 +8,6 @@ ".": "./dist/index.mjs", "./package.json": "./package.json" }, - "types": "./dist/index.d.mts", "files": [ "dist" ], diff --git a/react-compiler/package.json b/react-compiler/package.json index 2476c9a..54c4ed3 100644 --- a/react-compiler/package.json +++ b/react-compiler/package.json @@ -17,9 +17,6 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/react-compiler/tsdown.config.ts b/react-compiler/tsdown.config.ts index c97ea1b..ec9d72d 100644 --- a/react-compiler/tsdown.config.ts +++ b/react-compiler/tsdown.config.ts @@ -4,6 +4,7 @@ import { defineConfig } from 'tsdown' export default defineConfig({ platform: 'neutral', + exports: true, plugins: [ pluginBabel({ presets: [reactCompilerPreset()], diff --git a/react/package.json b/react/package.json index 685b6f0..3d60295 100644 --- a/react/package.json +++ b/react/package.json @@ -17,9 +17,6 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/react/tsdown.config.ts b/react/tsdown.config.ts index 4c6bc29..3a9a97f 100644 --- a/react/tsdown.config.ts +++ b/react/tsdown.config.ts @@ -2,5 +2,6 @@ import { defineConfig } from 'tsdown' export default defineConfig({ platform: 'neutral', + exports: true, // ...config options }) diff --git a/solid/package.json b/solid/package.json index 6f21931..52e3a06 100644 --- a/solid/package.json +++ b/solid/package.json @@ -21,9 +21,6 @@ }, "./package.json": "./package.json" }, - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/svelte/package.json b/svelte/package.json index d9c94b4..f2c6378 100644 --- a/svelte/package.json +++ b/svelte/package.json @@ -15,7 +15,8 @@ }, "exports": { ".": "./dist/index.js", - "./package.json": "./package.json" + "./package.json": "./package.json", + "./style.css": "./dist/style.css" }, "files": [ "dist" diff --git a/svelte/tsdown.config.ts b/svelte/tsdown.config.ts index 1222122..03d7773 100644 --- a/svelte/tsdown.config.ts +++ b/svelte/tsdown.config.ts @@ -5,6 +5,7 @@ import { svelteDtsPlugin } from './scripts/tsdown-plugin-svelte-dts.js' export default defineConfig({ platform: 'neutral', + exports: true, plugins: [ svelte({ preprocess: sveltePreprocess() }), svelteDtsPlugin({ diff --git a/vue/package.json b/vue/package.json index 0b0c4cc..5b78c2a 100644 --- a/vue/package.json +++ b/vue/package.json @@ -15,11 +15,9 @@ }, "exports": { ".": "./dist/index.js", - "./package.json": "./package.json" + "./package.json": "./package.json", + "./style.css": "./dist/style.css" }, - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/vue/tsdown.config.ts b/vue/tsdown.config.ts index 0c8bc08..e022c8c 100644 --- a/vue/tsdown.config.ts +++ b/vue/tsdown.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from 'tsdown' export default defineConfig({ platform: 'neutral', + exports: true, fromVite: true, dts: { vue: true }, })