Major Bugfix. Update init function

This commit is contained in:
2026-03-21 13:52:53 +01:00
parent d3336b48c7
commit a38841a587
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -4,11 +4,10 @@ import { execSync } from "child_process";
import path from "path";
import grabConfig from "./grab-config";
import type { BunextConfig } from "../types";
import isDevelopment from "../utils/is-development";
export default async function () {
const dirNames = grabDirNames();
const is_dev = isDevelopment();
const is_dev = !Boolean(process.env.NODE_ENV == "production");
execSync(`rm -rf ${dirNames.BUNEXT_CACHE_DIR}`);
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);