From 23bf60e3d02ec806f45eadcd77b3965714da5b7e Mon Sep 17 00:00:00 2001 From: nflnkr <105123049+nflnkr@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:01:32 +0300 Subject: [PATCH] fix package outDir --- package.json | 10 +++++----- vite.config.package.ts | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c886670..0c102fd 100755 --- a/package.json +++ b/package.json @@ -3,15 +3,15 @@ "version": "0.0.0", "private": true, "type": "module", - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", + "main": "./dist-package/index.js", + "module": "./dist-package/index.js", + "types": "./dist-package/index.d.ts", "files": [ - "dist" + "dist-package" ], "exports": { ".": { - "import": "./dist/index.js" + "import": "./dist-package/index.js" } }, "publishConfig": { diff --git a/vite.config.package.ts b/vite.config.package.ts index 1e02545..eb9da00 100644 --- a/vite.config.package.ts +++ b/vite.config.package.ts @@ -12,6 +12,7 @@ export default defineConfig({ formats: ["es"], fileName: "index" }, + outDir: "dist-package", copyPublicDir: false, rollupOptions: { external: [