Part of this commit is also: - complete plugins consolidation - complete presets consolidation - build system consolidation Refs #9188
22 lines
286 B
JavaScript
22 lines
286 B
JavaScript
/**
|
|
* @prettier
|
|
*/
|
|
|
|
const { gitDescribeSync } = require("git-describe")
|
|
|
|
function getRepoInfo() {
|
|
try {
|
|
return gitDescribeSync(__dirname)
|
|
} catch (e) {
|
|
console.error(e)
|
|
return {
|
|
hash: "noGit",
|
|
dirty: false,
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
getRepoInfo,
|
|
}
|