sha in toes cli
This commit is contained in:
parent
c2264c42fc
commit
dfdd5c89b4
|
|
@ -3,7 +3,7 @@ import { program } from 'commander'
|
|||
import color from 'kleur'
|
||||
|
||||
import pkg from '../../package.json'
|
||||
import { SHA } from './version'
|
||||
import { SHA } from './sha'
|
||||
import {
|
||||
cronList,
|
||||
cronLog,
|
||||
|
|
|
|||
3
src/cli/sha.ts
Normal file
3
src/cli/sha.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
declare var __GIT_SHA__: string | undefined
|
||||
|
||||
export const SHA: string = __GIT_SHA__ ?? 'dev'
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
declare var __GIT_SHA__: string
|
||||
|
||||
export const SHA: string = typeof __GIT_SHA__ !== 'undefined' ? __GIT_SHA__ : 'dev'
|
||||
Loading…
Reference in New Issue
Block a user