diff --git a/src/config.ts b/src/config.ts index 51b95e3..8826e9c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -13,5 +13,9 @@ export const NOSE_ROOT_BIN = join(NOSE_DIR, DEFAULT_PROJECT, "bin") export const NOSE_STARTED = Date.now() -export const GIT_SHA = (await $`git rev-parse --short HEAD`.text()).trim() - ; (globalThis as any).GIT_SHA = GIT_SHA \ No newline at end of file +let gitSHA = "" +try { gitSHA = (await $`git rev-parse --short HEAD`.text()).trim() } catch { } +export const GIT_SHA = gitSHA + ; (globalThis as any).GIT_SHA = GIT_SHA + +export const BUN_BIN = untilde("~/.bun/bin/bun") \ No newline at end of file