This commit is contained in:
Chris Wanstrath 2025-09-26 12:28:02 -07:00
parent 6492d5b3d5
commit 7e5de30ee9
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { NOSE_STARTED, NOSE_SYS, NOSE_DIR } from "@/config" import { NOSE_STARTED, NOSE_SYS, NOSE_DIR, GIT_SHA } from "@/config"
export default function () { export default function () {
return [ return [
@ -9,6 +9,7 @@ export default function () {
`PWD=${process.env.PWD || "(none)"}`, `PWD=${process.env.PWD || "(none)"}`,
`NOSE_STARTED=${NOSE_STARTED}`, `NOSE_STARTED=${NOSE_STARTED}`,
`NOSE_SYS=${NOSE_SYS}`, `NOSE_SYS=${NOSE_SYS}`,
`NOSE_DIR=${NOSE_DIR}` `NOSE_DIR=${NOSE_DIR}`,
`GIT_SHA=${GIT_SHA.slice(0, 8)}`,
].join("\n") ].join("\n")
} }

View File

@ -1,4 +1,5 @@
import { resolve, join } from "node:path" import { resolve, join } from "node:path"
import { $ } from "bun"
export const NOSE_ICON = ` ͡° ͜ʖ ͡°` export const NOSE_ICON = ` ͡° ͜ʖ ͡°`
@ -9,4 +10,5 @@ export const NOSE_DIR = resolve("..")
export const NOSE_BIN = join(NOSE_DIR, "bin") export const NOSE_BIN = join(NOSE_DIR, "bin")
export const NOSE_WWW = join(NOSE_DIR, "www") export const NOSE_WWW = join(NOSE_DIR, "www")
export const NOSE_STARTED = Date.now() export const NOSE_STARTED = Date.now()
export const GIT_SHA = (await $`git rev-parse HEAD`.text()).trim()