Major Bugfix. Update init function
This commit is contained in:
parent
d3336b48c7
commit
a38841a587
3
dist/functions/init.js
vendored
3
dist/functions/init.js
vendored
@ -3,10 +3,9 @@ import grabDirNames from "../utils/grab-dir-names";
|
|||||||
import { execSync } from "child_process";
|
import { execSync } from "child_process";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import grabConfig from "./grab-config";
|
import grabConfig from "./grab-config";
|
||||||
import isDevelopment from "../utils/is-development";
|
|
||||||
export default async function () {
|
export default async function () {
|
||||||
const dirNames = grabDirNames();
|
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.BUNEXT_CACHE_DIR}`);
|
||||||
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsc --watch",
|
"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",
|
"compile": "bun build ./src/commands/index.ts --compile --outfile bin/bunext",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "bun test --max-concurrency=1"
|
"test": "bun test --max-concurrency=1"
|
||||||
|
|||||||
@ -4,11 +4,10 @@ import { execSync } from "child_process";
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import grabConfig from "./grab-config";
|
import grabConfig from "./grab-config";
|
||||||
import type { BunextConfig } from "../types";
|
import type { BunextConfig } from "../types";
|
||||||
import isDevelopment from "../utils/is-development";
|
|
||||||
|
|
||||||
export default async function () {
|
export default async function () {
|
||||||
const dirNames = grabDirNames();
|
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.BUNEXT_CACHE_DIR}`);
|
||||||
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user