You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-14 14:35:27 -04:00
forward Hugo's exit code so this module itself reports success/failure (fixes #77)
This commit is contained in:
+4
-1
@@ -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