mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-05-21 05:41:43 +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}`);
|
console.log(`${consoleStyle.BLUE}Starting build...${consoleStyle.RESET}`);
|
||||||
|
|
||||||
// Tries to build the wiki if build.js is run in a GitHub Workflow
|
// Tries to build the wiki if build.js is run in a GitHub Workflow
|
||||||
if (isGitHub) {
|
// if (isGitHub) {
|
||||||
try {
|
// try {
|
||||||
console.log(`Generating JSDoc...`);
|
// console.log(`Generating JSDoc...`);
|
||||||
execSync(`npx jsdoc src/ -r -d docs -t node_modules/minami`, { stdio: "inherit" });
|
// execSync(`npx jsdoc src/ -r -d docs -t node_modules/minami`, { stdio: "inherit" });
|
||||||
console.log(`JSDoc built ${consoleStyle.GREEN}successfully${consoleStyle.RESET}`);
|
// console.log(`JSDoc built ${consoleStyle.GREEN}successfully${consoleStyle.RESET}`);
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error(`${consoleStyle.RED + consoleStyle.BOLD}Failed to generate JSDoc${consoleStyle.RESET}:`, error);
|
// console.error(`${consoleStyle.RED + consoleStyle.BOLD}Failed to generate JSDoc${consoleStyle.RESET}:`, error);
|
||||||
process.exit(1);
|
// process.exit(1);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Tries to bump the version
|
// Tries to bump the version
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue