You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-06-30 22:16:39 -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:
@ -10,6 +10,6 @@ import hugo from "../index.js";
|
||||
spawn(bin, args, { stdio: "inherit" })
|
||||
.on("exit", (code) => {
|
||||
// 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