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 dependency handling in CLI command by changing the condition from 'deps' to 'noDeps' for improved clarity. Remove outdated TODO comment regarding template link verification.

vholik2caca021da15
diff --git a/packages/cli/src/commands/create.ts b/packages/cli/src/commands/create.ts
index 58697e0c0..3ebf9fdd9 100644
--- a/packages/cli/src/commands/create.ts
+++ b/packages/cli/src/commands/create.ts
@@ -109,7 +109,7 @@ export const create = new Command()
const packageManager = await getPackageManager(projectDir);
- if (!opts.deps) {
+ if (opts.noDeps) {
logger.info("Dependency installation skipped.");
} else {
logger.info(`Using ${highlighter.info(packageManager)}.`);
@@ -184,7 +184,6 @@ async function downloadTemplate({
projectDir: string;
template: keyof typeof CREATE_TEMPLATES;
}) {
- // todo: make sure the link is correct
const url = `https://codeload.github.com/mercurjs/mercur/tar.gz/${DEFAULT_BRANCH}`;
const templatePath = CREATE_TEMPLATES[template];
const filter = `mercur-${DEFAULT_BRANCH.replace(/^v/, "").replaceAll("/", "-")}/templates/${templatePath}/`;