personal_area_php/frontend/web/api-doc/webpack/_helpers.js
2024-05-24 15:27:07 +03:00

18 lines
251 B
JavaScript

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