feat: expose plugins and presets on SwaggerUI global symbol (#9189)
Part of this commit is also: - complete plugins consolidation - complete presets consolidation - build system consolidation Refs #9188
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
* @prettier
|
||||
*/
|
||||
|
||||
import { gitDescribeSync } from "git-describe"
|
||||
const { gitDescribeSync } = require("git-describe")
|
||||
|
||||
export function getRepoInfo() {
|
||||
function getRepoInfo() {
|
||||
try {
|
||||
return gitDescribeSync(__dirname)
|
||||
} catch (e) {
|
||||
@@ -15,3 +15,7 @@ export function getRepoInfo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getRepoInfo,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user