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.

chore(create-app): default to basic template without prompting (#1228)

Viktor Holik473160e961cf
diff --git a/packages/create-mercur-app/src/commands/create.ts b/packages/create-mercur-app/src/commands/create.ts
index 8d0ee9fe4..5ef4a491c 100644
--- a/packages/create-mercur-app/src/commands/create.ts
+++ b/packages/create-mercur-app/src/commands/create.ts
@@ -104,24 +104,26 @@ export const create = new Command()
let template = opts.template;
if (!template) {
- const { selectedTemplate } = await prompts({
- type: "select",
- name: "selectedTemplate",
- message: `Which ${highlighter.info(
- "template"
- )} would you like to use?`,
- choices: Object.entries(CREATE_TEMPLATES).map(([key, tmpl]) => ({
- title: key,
- value: key,
- description: tmpl.description,
- })),
- });
-
- if (!selectedTemplate) {
- process.exit(0);
- }
-
- template = selectedTemplate;
+ // todo: re-enable template selection once more templates are ready
+ // const { selectedTemplate } = await prompts({
+ // type: "select",
+ // name: "selectedTemplate",
+ // message: `Which ${highlighter.info(
+ // "template"
+ // )} would you like to use?`,
+ // choices: Object.entries(CREATE_TEMPLATES).map(([key, tmpl]) => ({
+ // title: key,
+ // value: key,
+ // description: tmpl.description,
+ // })),
+ // });
+ //
+ // if (!selectedTemplate) {
+ // process.exit(0);
+ // }
+ //
+ // template = selectedTemplate;
+ template = "basic";
}
if (!opts.skipEmail) {