@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
18 lines (14 loc) • 325 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
// src/getGitLastCommitHash.ts
import { $ } from "execa";
async function getLastGitCommitHash() {
const commitHash = await $`git rev-parse --short HEAD`;
return commitHash;
}
export {
getLastGitCommitHash
};