Bugfixes: update types, update imports, update init function.
This commit is contained in:
Vendored
+3
-1
@@ -3,8 +3,10 @@ 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();
|
||||
execSync(`rm -rf ${dirNames.BUNEXT_CACHE_DIR}`);
|
||||
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
||||
try {
|
||||
@@ -31,6 +33,6 @@ export default async function () {
|
||||
const config = (await grabConfig()) || {};
|
||||
global.CONFIG = {
|
||||
...config,
|
||||
development: true,
|
||||
development: is_dev,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user