mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-01-11 22:40:18 +00:00
Fixed bug in JSDoc generation in build.js
This commit is contained in:
parent
d4ccbdc465
commit
8b09728196
1 changed files with 10 additions and 10 deletions
|
|
@ -25,16 +25,16 @@ const isGitHub = !!process.env?.GITHUB_ACTIONS; // Is this running in a GitHub A
|
|||
console.log(`${consoleStyle.BLUE}Starting build...${consoleStyle.RESET}`);
|
||||
|
||||
// Tries to build the wiki if build.js is run in a GitHub Workflow
|
||||
if (isGitHub) {
|
||||
try {
|
||||
console.log(`Generating JSDoc...`);
|
||||
execSync(`npx jsdoc src/ -r -d docs -t node_modules/minami`, { stdio: "inherit" });
|
||||
console.log(`JSDoc built ${consoleStyle.GREEN}successfully${consoleStyle.RESET}`);
|
||||
} catch (error) {
|
||||
console.error(`${consoleStyle.RED + consoleStyle.BOLD}Failed to generate JSDoc${consoleStyle.RESET}:`, error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
// if (isGitHub) {
|
||||
// try {
|
||||
// console.log(`Generating JSDoc...`);
|
||||
// execSync(`npx jsdoc src/ -r -d docs -t node_modules/minami`, { stdio: "inherit" });
|
||||
// console.log(`JSDoc built ${consoleStyle.GREEN}successfully${consoleStyle.RESET}`);
|
||||
// } catch (error) {
|
||||
// console.error(`${consoleStyle.RED + consoleStyle.BOLD}Failed to generate JSDoc${consoleStyle.RESET}:`, error);
|
||||
// process.exit(1);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Tries to bump the version
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue