@akanjs/cli 0.9.38 → 0.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -3940,7 +3940,7 @@ var ApplicationRunner = class {
3940
3940
  await app.exec("rm -rf .next");
3941
3941
  app.writeFile("next.config.ts", defaultNextConfigFile);
3942
3942
  } else if (target === "csr")
3943
- await app.workspace.exec("rm -rf node_modules/.vite");
3943
+ await app.workspace.exec(`rm -rf ${app.workspace.workspaceRoot}/node_modules/.vite/${app.name}`);
3944
3944
  else if (target === "backend")
3945
3945
  await app.cp("assets", import_path4.default.join(app.dist.cwdPath, "backend", "assets"));
3946
3946
  return { env: this.#getEnv(app, target, { AKAN_COMMAND_TYPE: type }) };
@@ -4066,6 +4066,7 @@ var ApplicationRunner = class {
4066
4066
  },
4067
4067
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
4068
4068
  publicDir: `${app.cwdPath}/public`,
4069
+ cacheDir: `${app.workspace.workspaceRoot}/node_modules/.vite/${app.name}`,
4069
4070
  plugins: [
4070
4071
  (0, import_plugin_react.default)(),
4071
4072
  (0, import_vite_tsconfig_paths.default)(),
@@ -25,6 +25,7 @@ apps/*/scripts
25
25
  **/.idea
26
26
  apps/**/src/schema.gql
27
27
  .next
28
+ .vite
28
29
  dump
29
30
  local
30
31
 
package/esm/index.js CHANGED
@@ -3921,7 +3921,7 @@ var ApplicationRunner = class {
3921
3921
  await app.exec("rm -rf .next");
3922
3922
  app.writeFile("next.config.ts", defaultNextConfigFile);
3923
3923
  } else if (target === "csr")
3924
- await app.workspace.exec("rm -rf node_modules/.vite");
3924
+ await app.workspace.exec(`rm -rf ${app.workspace.workspaceRoot}/node_modules/.vite/${app.name}`);
3925
3925
  else if (target === "backend")
3926
3926
  await app.cp("assets", path7.join(app.dist.cwdPath, "backend", "assets"));
3927
3927
  return { env: this.#getEnv(app, target, { AKAN_COMMAND_TYPE: type }) };
@@ -4047,6 +4047,7 @@ var ApplicationRunner = class {
4047
4047
  },
4048
4048
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
4049
4049
  publicDir: `${app.cwdPath}/public`,
4050
+ cacheDir: `${app.workspace.workspaceRoot}/node_modules/.vite/${app.name}`,
4050
4051
  plugins: [
4051
4052
  react(),
4052
4053
  tsconfigPaths(),
@@ -25,6 +25,7 @@ apps/*/scripts
25
25
  **/.idea
26
26
  apps/**/src/schema.gql
27
27
  .next
28
+ .vite
28
29
  dump
29
30
  local
30
31
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.38",
5
+ "version": "0.9.40",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },