You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-09-15 22:35:31 -04:00
forward Hugo's exit code so this module itself reports success/failure (fixes #77)
This commit is contained in:
@@ -6,4 +6,7 @@ import hugo from "../index.js";
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
spawn(hugo, args, { stdio: "inherit" })
|
||||
.on("exit", process.exit);
|
||||
.on("exit", (code) => {
|
||||
// forward Hugo's exit code so this module itself reports success/failure
|
||||
process.exit(code);
|
||||
});
|
||||
|
Reference in New Issue
Block a user