diff --git a/package.json b/package.json index 88d490c..a3eb990 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,12 @@ "test:coverage": "vitest run --coverage" }, "sideEffects": false, - "main": "./dist-cjs/index.cjs", - "module": "./dist-esm/index.mjs", - "types": "./dist-types/index.d.ts", + "main": "./dist/index.cjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ "CHANGELOG.md", - "dist-cjs", - "dist-esm", - "dist-types" + "dist" ], "keywords": [ "cloudcome", diff --git a/vite.config.mts b/vite.config.mts index 462e814..cde1353 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -13,7 +13,7 @@ export default defineConfig({ plugins: [ externalizeDeps(), dts({ - outDir: 'dist-types', + outDir: 'dist', entryRoot: 'src', }), ], @@ -33,13 +33,13 @@ export default defineConfig({ output: [ { format: 'esm', - dir: 'dist-esm', + dir: 'dist', entryFileNames: '[name].mjs', chunkFileNames: '[name].mjs', }, { format: 'cjs', - dir: 'dist-cjs', + dir: 'dist', entryFileNames: '[name].cjs', chunkFileNames: '[name].cjs', },