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 CLI command imports by removing the deprecated build-registry command and updating references to the new build command, improving code organization and maintainability.

vholikfab8fc6e8cfc
diff --git a/packages/cli/src/commands/build-registry.ts b/packages/cli/src/commands/build.ts
similarity index 99%
rename from packages/cli/src/commands/build-registry.ts
rename to packages/cli/src/commands/build.ts
index 5b9ca0eda..ffd59cfeb 100644
--- a/packages/cli/src/commands/build-registry.ts
+++ b/packages/cli/src/commands/build.ts
@@ -22,7 +22,7 @@ export const buildOptionsSchema = z.object({
export const build = new Command()
.name("build")
- .description("build registry")
+ .description("builds the registry")
.argument("[registry]", "path to registry.json file", "./registry.json")
.option(
"-o, --output <path>",
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
index e18df28bb..a75624958 100755
--- a/packages/cli/src/index.ts
+++ b/packages/cli/src/index.ts
@@ -2,7 +2,7 @@
import { Command } from "commander";
import packageJson from "../package.json";
import { add } from "./commands/add";
-import { build } from "./commands/build-registry";
+import { build } from "./commands/build";
import { create } from "./commands/create";
import { diff } from "./commands/diff";
import { info } from "./commands/info";
diff --git a/packages/cli/src/preflights/preflight-registry.ts b/packages/cli/src/preflights/preflight-registry.ts
index 767205d02..7b9e00adb 100644
--- a/packages/cli/src/preflights/preflight-registry.ts
+++ b/packages/cli/src/preflights/preflight-registry.ts
@@ -1,5 +1,5 @@
import path from "path";
-import { buildOptionsSchema } from "@/src/commands/build-registry";
+import { buildOptionsSchema } from "@/src/commands/build";
import * as ERRORS from "@/src/utils/errors";
import { getConfig } from "@/src/utils/get-config";
import { highlighter } from "@/src/utils/highlighter";