Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: use non-zero exit code for cancelled init flow (#5058)

Alec Larson3d6b71d6dd1d
diff --git a/packages/cli/src/commands/init-flow.ts b/packages/cli/src/commands/init-flow.ts
index 8ae81ff797..72c4363b90 100644
--- a/packages/cli/src/commands/init-flow.ts
+++ b/packages/cli/src/commands/init-flow.ts
@@ -24,7 +24,7 @@ type ProjectTemplates = (typeof PROJECT_TEMPLATES)[number]["value"];
const exitIfCancelled = <Value>(value: Value | symbol): Value => {
if (isCancel(value)) {
cancel("Project initialization is cancelled");
- process.exit(0);
+ process.exit(1);
}
return value;
};