Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

refactor: remove automatic confirmation option from create command and adjust dependency installation logic

vholik0eae5fc1bd62
diff --git a/packages/cli/src/commands/create.ts b/packages/cli/src/commands/create.ts
index 0d566e073..45af9f5bd 100644
--- a/packages/cli/src/commands/create.ts
+++ b/packages/cli/src/commands/create.ts
@@ -41,7 +41,6 @@ export const create = new Command()
"the working directory. defaults to the current directory.",
process.cwd()
)
- .option("-y, --yes", "skip confirmation prompt.", true)
.option("--no-deps", "skip installing dependencies.", false)
.option("--skip-db", "skip database configuration.", false)
.option("--db-connection-string <string>", "PostgreSQL connection string.")
@@ -110,7 +109,7 @@ export const create = new Command()
const packageManager = await getPackageManager(projectDir);
- if (opts.noDeps) {
+ if (!opts.deps) {
logger.warn("Dependency installation skipped.");
} else {
const installSpinner = spinner("Installing dependencies...").start();