@moloodev/cli 0.9.1 → 0.11.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moloodev/cli",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "moloo": "./bin/moloo.mjs"
@@ -24,15 +24,16 @@
24
24
  "tw-animate-css": "^1.4.0",
25
25
  "vite": "^8.2.2",
26
26
  "zod": "^4.5.4",
27
- "@moloodev/editor-store": "0.9.1",
28
- "@moloodev/platform": "0.9.1",
29
- "@moloodev/ui": "0.9.1",
30
- "@moloodev/editor-sdk": "0.9.1"
27
+ "@moloodev/editor-sdk": "0.11.0",
28
+ "@moloodev/editor-store": "0.11.0",
29
+ "@moloodev/platform": "0.11.0",
30
+ "@moloodev/ui": "0.11.0"
31
31
  },
32
32
  "devDependencies": {
33
+ "vitest": "5.1.0",
33
34
  "@types/node": "^24.13.3",
34
35
  "typescript": "^7.0.2",
35
- "@moloodev/typescript-config": "0.9.1"
36
+ "@moloodev/typescript-config": "0.11.0"
36
37
  },
37
38
  "publishConfig": {
38
39
  "access": "public"
@@ -49,6 +50,6 @@
49
50
  },
50
51
  "scripts": {
51
52
  "typecheck": "tsc --noEmit",
52
- "test": "node --import tsx --test 'src/**/*.test.ts' 'bin/**/*.test.mjs'"
53
+ "test": "vitest run --root ../.. --project @moloodev/cli"
53
54
  }
54
55
  }
@@ -94,6 +94,9 @@ export function readEditorManifest(file: string): Record<string, unknown> {
94
94
  if ("icon" in input && input.icon !== undefined && (typeof input.icon !== "string" || !/^tabler:[a-z0-9]+(-[a-z0-9]+)*$/.test(input.icon))) {
95
95
  throw new Error("Invalid editor manifest: icon must be tabler:{name}");
96
96
  }
97
+ if (input.color != null && (typeof input.color !== "string" || !/^#[0-9a-fA-F]{6}$/.test(input.color))) {
98
+ throw new Error("Invalid editor manifest: color must be #rrggbb");
99
+ }
97
100
  const contributes = input.contributes ?? {};
98
101
  if (!isRecord(contributes)) throw new Error(`Manifest contributes must be an object: ${file}`);
99
102
  if (input.layoutVersion != null && (typeof input.layoutVersion !== "number" || !Number.isInteger(input.layoutVersion) || input.layoutVersion < 1)) {