Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/two-bobcats-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/kumo": patch
---

fix(cli): resolve registry path for docs and ls commands
4 changes: 2 additions & 2 deletions packages/kumo/src/command-line/commands/doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ interface ComponentRegistry {
*/
function getRegistryPath(): string {
const __dirname = dirname(fileURLToPath(import.meta.url));
// When bundled and running from dist/command-line/, go up 2 levels to package root then into catalog/
return join(__dirname, "..", "..", "catalog", "component-registry.json");
// When bundled and running from dist/command-line/, go up 2 levels to package root then into ai/
return join(__dirname, "..", "..", "ai", "component-registry.json");
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/kumo/src/command-line/commands/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ interface ComponentRegistry {
*/
function getRegistryPath(): string {
const __dirname = dirname(fileURLToPath(import.meta.url));
// When bundled and running from dist/command-line/, go up 2 levels to package root then into catalog/
return join(__dirname, "..", "..", "catalog", "component-registry.json");
// When bundled and running from dist/command-line/, go up 2 levels to package root then into ai/
return join(__dirname, "..", "..", "ai", "component-registry.json");
}

/**
Expand Down