diff --git a/.changeset/fresh-poems-wash.md b/.changeset/fresh-poems-wash.md new file mode 100644 index 000000000..55372c701 --- /dev/null +++ b/.changeset/fresh-poems-wash.md @@ -0,0 +1,7 @@ +--- +"@cloudoperators/juno-communicator": patch +"@cloudoperators/juno-k8s-client": patch +"@cloudoperators/juno-oauth": patch +--- + +Fix package output directory issue by adding --outDir option to Vite CLI. diff --git a/packages/communicator/package.json b/packages/communicator/package.json index 87a1ba805..a47f28f2e 100644 --- a/packages/communicator/package.json +++ b/packages/communicator/package.json @@ -8,6 +8,7 @@ ], "type": "module", "main": "build/index.js", + "module": "build/index.js", "types": "build/types/index.d.ts", "files": [ "build/**", @@ -16,7 +17,6 @@ "repository": "https://github.com/cloudoperators/juno/tree/main/packages/communicator", "license": "Apache-2.0", "source": "src/index.js", - "module": "build/index.js", "engines": { "node": ">=20.0.0 <21.0.0", "npm": ">=10.0.0 <11.0.0" @@ -26,7 +26,7 @@ "test:watch": "vitest --watch", "lint": "eslint ", "dev": "vite", - "build": "vite build", + "build": "vite build --outDir build", "serve": "vite preview", "typecheck": "tsc --noEmit", "clean": "rm -rf build && rm -rf node_modules && rm -rf .turbo" diff --git a/packages/k8s-client/package.json b/packages/k8s-client/package.json index 107748cb7..b1259c954 100644 --- a/packages/k8s-client/package.json +++ b/packages/k8s-client/package.json @@ -16,7 +16,7 @@ "lint": "eslint", "typecheck": "tsc --noEmit", "dev": "vite", - "build": "vite build", + "build": "vite build --outDir build", "serve": "vite preview", "clean": "rm -rf build && rm -rf node_modules && rm -rf .turbo" }, diff --git a/packages/oauth/package.json b/packages/oauth/package.json index be471e601..49565b376 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -33,7 +33,7 @@ "lint": "eslint", "typecheck": "tsc --noEmit", "dev": "vite", - "build": "vite build", + "build": "vite build --outDir build", "serve": "vite preview", "clean": "rm -rf build && rm -rf node_modules && rm -rf .turbo" }