blob: 3fb3c37074a66ababc002dc5e762996a54e65430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { execSync } from "child_process";
export default () => {
const latestGitCommitHash = execSync("git rev-parse --short=10 HEAD")
.toString()
.trim();
return {
hash: latestGitCommitHash,
};
};
|