Update watcher function. Add tests
This commit is contained in:
Vendored
+2
-1
@@ -8,7 +8,8 @@ export default async function () {
|
||||
execSync(`rm -rf ${dirNames.BUNEXT_CACHE_DIR}`);
|
||||
execSync(`rm -rf ${dirNames.BUNX_CWD_MODULE_CACHE_DIR}`);
|
||||
try {
|
||||
const current_version = (await Bun.file(path.resolve(__dirname, "../../package.json")).json()).version;
|
||||
const package_json = await Bun.file(path.resolve(__dirname, "../../package.json")).json();
|
||||
const current_version = package_json.version;
|
||||
global.CURRENT_VERSION = current_version;
|
||||
}
|
||||
catch (error) { }
|
||||
|
||||
Reference in New Issue
Block a user