@cloudflare/kumo 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @cloudflare/kumo
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b64847d: fix: CLI commands now find component registry and run codegen:registry before publish
8
+ - ea583d8: fix(cli): resolve registry path for docs and ls commands
9
+
3
10
  ## 1.4.0
4
11
 
5
12
  ### Minor Changes
@@ -1 +1 @@
1
- 1770735908609
1
+ 1770737905837
@@ -6,7 +6,7 @@ import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  function getRegistryPath() {
8
8
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
9
- return join(__dirname2, "..", "..", "catalog", "component-registry.json");
9
+ return join(__dirname2, "..", "..", "ai", "component-registry.json");
10
10
  }
11
11
  function loadRegistry() {
12
12
  const registryPath = getRegistryPath();
@@ -41,7 +41,7 @@ function ls() {
41
41
  } catch (error) {
42
42
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
43
43
  console.error(
44
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
44
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
45
45
  );
46
46
  process.exit(1);
47
47
  }
@@ -55,7 +55,7 @@ import { dirname as dirname2, join as join2 } from "node:path";
55
55
  import { fileURLToPath as fileURLToPath2 } from "node:url";
56
56
  function getRegistryPath2() {
57
57
  const __dirname2 = dirname2(fileURLToPath2(import.meta.url));
58
- return join2(__dirname2, "..", "..", "catalog", "component-registry.json");
58
+ return join2(__dirname2, "..", "..", "ai", "component-registry.json");
59
59
  }
60
60
  function loadRegistry2() {
61
61
  const registryPath = getRegistryPath2();
@@ -173,7 +173,7 @@ function docs() {
173
173
  } catch (error) {
174
174
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
175
175
  console.error(
176
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
176
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
177
177
  );
178
178
  process.exit(1);
179
179
  }
@@ -203,7 +203,7 @@ Run "kumo ls" to see all available components.`);
203
203
  } catch (error) {
204
204
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
205
205
  console.error(
206
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
206
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
207
207
  );
208
208
  process.exit(1);
209
209
  }
@@ -6,7 +6,7 @@ import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  function getRegistryPath() {
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
- return join(__dirname, "..", "..", "catalog", "component-registry.json");
9
+ return join(__dirname, "..", "..", "ai", "component-registry.json");
10
10
  }
11
11
  function loadRegistry() {
12
12
  const registryPath = getRegistryPath();
@@ -124,7 +124,7 @@ function docs() {
124
124
  } catch (error) {
125
125
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
126
126
  console.error(
127
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
127
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
128
128
  );
129
129
  process.exit(1);
130
130
  }
@@ -154,7 +154,7 @@ Run "kumo ls" to see all available components.`);
154
154
  } catch (error) {
155
155
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
156
156
  console.error(
157
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
157
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
158
158
  );
159
159
  process.exit(1);
160
160
  }
@@ -6,7 +6,7 @@ import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  function getRegistryPath() {
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
- return join(__dirname, "..", "..", "catalog", "component-registry.json");
9
+ return join(__dirname, "..", "..", "ai", "component-registry.json");
10
10
  }
11
11
  function loadRegistry() {
12
12
  const registryPath = getRegistryPath();
@@ -41,7 +41,7 @@ function ls() {
41
41
  } catch (error) {
42
42
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
43
43
  console.error(
44
- "Error: Component registry not found. Run `pnpm build:ai-metadata` first."
44
+ "Error: Component registry not found. Run `pnpm codegen:registry` first."
45
45
  );
46
46
  process.exit(1);
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/kumo",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Kumo - Cloudflare's component library for building modern web applications",
@@ -419,7 +419,7 @@
419
419
  "zod": "^4.0.0"
420
420
  },
421
421
  "scripts": {
422
- "prepublish": "pnpm run clean && pnpm run build && pnpm run test:unit",
422
+ "prepublish": "pnpm run clean && pnpm run codegen:registry && pnpm run build && pnpm run test:unit",
423
423
  "build": "vite build --mode production && tsx scripts/css-build.ts && tsx src/command-line/build-cli.ts",
424
424
  "dev": "vite build --watch --mode development",
425
425
  "new:component": "plop component",