thaldrin/src/utils/git.ts

3 lines
134 B
TypeScript

import { execSync } from 'child_process';
export const commitHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).slice(0, 8);