@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(
|
|
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)(),
|
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(
|
|
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(),
|