Skip to content

Commit 67647c9

Browse files
committed
refactor(cli): rename registry namespace to @databricks-appkit
Match the registry rename (registry.json name: appkit -> databricks-appkit) so `appkit add` writes the @databricks-appkit namespace into components.json and stripNamespace() strips the same prefix. Co-authored-by: Isaac
1 parent 9bed193 commit 67647c9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/shared/src/cli/commands/registry/client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface RegistryItem {
2323
files?: RegistryItemFile[];
2424
}
2525

26-
/** Removes a leading `@appkit/` namespace from a component reference. */
26+
/** Removes a leading `@databricks-appkit/` namespace from a component reference. */
2727
export function stripNamespace(component: string): string {
2828
const prefix = `${REGISTRY_NAMESPACE}/`;
2929
return component.startsWith(prefix)

‎packages/shared/src/cli/commands/registry/constants.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { spawnSync } from "node:child_process";
22

3-
/** shadcn registry namespace consumers reference, e.g. `@appkit/metric-card`. */
4-
export const REGISTRY_NAMESPACE = "@appkit";
3+
/** shadcn registry namespace consumers reference, e.g. `@databricks-appkit/metric-card`. */
4+
export const REGISTRY_NAMESPACE = "@databricks-appkit";
55

66
/** GitHub repo hosting the registry, and the branch the built items live on. */
77
export const REGISTRY_REPO = "databricks/appkit-registry";

0 commit comments

Comments
 (0)