sha in toes cli

This commit is contained in:
Chris Wanstrath 2026-03-05 07:43:59 -08:00
parent c2264c42fc
commit dfdd5c89b4
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import { program } from 'commander'
import color from 'kleur' import color from 'kleur'
import pkg from '../../package.json' import pkg from '../../package.json'
import { SHA } from './version' import { SHA } from './sha'
import { import {
cronList, cronList,
cronLog, cronLog,

3
src/cli/sha.ts Normal file
View File

@ -0,0 +1,3 @@
declare var __GIT_SHA__: string | undefined
export const SHA: string = __GIT_SHA__ ?? 'dev'

View File

@ -1,3 +0,0 @@
declare var __GIT_SHA__: string
export const SHA: string = typeof __GIT_SHA__ !== 'undefined' ? __GIT_SHA__ : 'dev'