You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-14 15:45:27 -04:00
process.exit(code) -> process.exitCode = code
discouraged by official docs, see: https://nodejs.org/api/process.html#process_process_exit_code
This commit is contained in:
+1
-1
@@ -10,6 +10,6 @@ import hugo from "../index.js";
|
|||||||
spawn(bin, args, { stdio: "inherit" })
|
spawn(bin, args, { stdio: "inherit" })
|
||||||
.on("exit", (code) => {
|
.on("exit", (code) => {
|
||||||
// forward Hugo's exit code so this module itself reports success/failure
|
// forward Hugo's exit code so this module itself reports success/failure
|
||||||
process.exit(code);
|
process.exitCode = code;
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user