parsaaghayi-backend/vendor/swagger-api/swagger-ui/webpack/_helpers.js
DevOps 3aad54907e
Some checks failed
Deploy Backend / deploy (push) Failing after 3m44s
chore: commit complete vendor (Liara mirror no dist)
2026-06-23 15:37:41 +00:00

28 lines
440 B
JavaScript

/**
* @prettier
*/
const { gitDescribeSync } = require("git-describe")
function getRepoInfo() {
try {
return gitDescribeSync(__dirname)
} catch (e) {
console.error(e)
return {
hash: "noGit",
dirty: false,
}
}
}
function getDevtool(sourcemaps, minimize) {
if (!sourcemaps) return false
return minimize ? "source-map" : "cheap-module-source-map"
}
module.exports = {
getRepoInfo,
getDevtool,
}