Ekapp/swagger/webpack/_helpers.js

18 lines
251 B
JavaScript
Raw Normal View History

2020-06-10 06:25:21 +00:00
/**
* @prettier
*/
import { gitDescribeSync } from "git-describe"
export function getRepoInfo() {
try {
return gitDescribeSync(__dirname)
} catch (e) {
console.error(e)
return {
hash: "noGit",
dirty: false,
}
}
}