You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 line
251 B

  1. /**
  2. * @prettier
  3. */
  4. import { gitDescribeSync } from "git-describe"
  5. export function getRepoInfo() {
  6. try {
  7. return gitDescribeSync(__dirname)
  8. } catch (e) {
  9. console.error(e)
  10. return {
  11. hash: "noGit",
  12. dirty: false,
  13. }
  14. }
  15. }