chore: fix type regressions and helpers

This commit is contained in:
Peter Steinberger
2025-11-25 04:40:57 +01:00
parent 13be898c07
commit 2aac606979
8 changed files with 32 additions and 14 deletions

View File

@@ -197,6 +197,10 @@ With Tailscale:
const deps = createDefaultDeps();
try {
const server = await webhookCommand(opts, deps, defaultRuntime);
if (!server) {
defaultRuntime.log(info("Webhook dry-run complete; no server started."));
return;
}
process.on("SIGINT", () => {
server.close(() => {
console.log("\n👋 Webhook stopped");
@@ -227,6 +231,10 @@ With Tailscale:
const deps = createDefaultDeps();
try {
const { server } = await upCommand(opts, deps, defaultRuntime);
if (!server) {
defaultRuntime.log(info("Up dry-run complete; no server started."));
return;
}
process.on("SIGINT", () => {
server.close(() => {
console.log("\n👋 Webhook stopped");