Fix CLI build and clarify Netlify CI

This commit is contained in:
thePR0M3TH3AN
2025-07-10 12:21:26 -04:00
parent dab65efd2e
commit ed83ccb7ed
3 changed files with 9 additions and 2 deletions

View File

@@ -166,3 +166,10 @@ async function generate({ contentDir = 'content', outputDir = '_site', configPat
}
module.exports = { generate, buildNav };
if (require.main === module) {
generate().catch(err => {
console.error(err);
process.exit(1);
});
}