Major Bugfix. Update init function

This commit is contained in:
Benjamin Toby 2026-03-21 13:52:53 +01:00
parent d3336b48c7
commit a38841a587
3 changed files with 3 additions and 5 deletions

View File

@ -3,10 +3,9 @@ import grabDirNames from "../utils/grab-dir-names";
import { execSync } from "child_process";
import path from "path";
import grabConfig from "./grab-config";
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}`);
try {

View File

@ -27,7 +27,7 @@
],
"scripts": {
"dev": "tsc --watch",
"publish": "tsc --noEmit && tsc && git add . && git commit -m 'Bugfixes: update types, update imports, update init function.' && git push",
"git:push": "bun run test && tsc --noEmit && tsc && git add . && git commit -m 'Major Bugfix. Update init function' && git push",
"compile": "bun build ./src/commands/index.ts --compile --outfile bin/bunext",
"build": "tsc",
"test": "bun test --max-concurrency=1"

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}`);