1
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:
2021-11-01 22:03:03 -04:00
parent 8251c012de
commit 8698b38887

View File

@ -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;
});
})();