@beechcms/cms 0.4.0-preview.4 → 0.4.0-preview.6

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/bin/cli.mjs CHANGED
@@ -49,6 +49,12 @@ async function tryLoadLocalRegistry() {
49
49
  if (mod.SEED_REGISTRY && typeof mod.SEED_REGISTRY === 'object') {
50
50
  return mod.SEED_REGISTRY
51
51
  }
52
+ if (Array.isArray(mod.seeds)) {
53
+ return Object.fromEntries(mod.seeds.map(s => [s.slug, s]))
54
+ }
55
+ if (Array.isArray(mod.default)) {
56
+ return Object.fromEntries(mod.default.map(s => [s.slug, s]))
57
+ }
52
58
  } catch {}
53
59
  }
54
60
  }
@@ -60,7 +66,14 @@ async function tryLoadLocalRegistry() {
60
66
  '--experimental-strip-types',
61
67
  '--input-type=module',
62
68
  '--eval',
63
- `import { SEED_REGISTRY } from ${JSON.stringify(pathToFileURL(tsPath).href)}; process.stdout.write(JSON.stringify(SEED_REGISTRY))`,
69
+ `
70
+ import * as mod from ${JSON.stringify(pathToFileURL(tsPath).href)};
71
+ let out = null;
72
+ if (mod.SEED_REGISTRY && typeof mod.SEED_REGISTRY === 'object') out = mod.SEED_REGISTRY;
73
+ else if (Array.isArray(mod.seeds)) out = Object.fromEntries(mod.seeds.map(s => [s.slug, s]));
74
+ else if (Array.isArray(mod.default)) out = Object.fromEntries(mod.default.map(s => [s.slug, s]));
75
+ if (out) process.stdout.write(JSON.stringify(out));
76
+ `.trim(),
64
77
  ], { encoding: 'utf-8' })
65
78
  if (result.status === 0 && result.stdout) {
66
79
  try { return JSON.parse(result.stdout) } catch {}
package/bin/create.mjs CHANGED
@@ -108,8 +108,8 @@ function buildPackageJson(name) {
108
108
  'db:reset:local': 'node -e "require(\'fs\').rmSync(\'.wrangler/state\',{recursive:true,force:true})" && npm run db:migrate:local',
109
109
  },
110
110
  dependencies: {
111
- '@beechcms/api': '^0.4.0-preview.4',
112
- '@beechcms/core': '^0.4.0-preview.4',
111
+ '@beechcms/api': '^0.4.0-preview.5',
112
+ '@beechcms/core': '^0.4.0-preview.5',
113
113
  },
114
114
  devDependencies: {
115
115
  '@cloudflare/workers-types': '^4.0.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beechcms/cms",
3
- "version": "0.4.0-preview.4",
3
+ "version": "0.4.0-preview.6",
4
4
  "packageManager": "npm@11.9.0",
5
5
  "description": "Edge-Native, Schema-Driven Headless CMS built on Cloudflare Workers, D1, and R2. Features the Botanical Engine for alias-stable field management, a modular widget layer, and a React + Vite admin dashboard.",
6
6
  "keywords": [
@@ -45,7 +45,9 @@
45
45
  "dev": "turbo run dev --parallel",
46
46
  "build": "turbo run build",
47
47
  "test": "turbo run test",
48
- "test:coverage": "turbo run test:coverage"
48
+ "test:coverage": "turbo run test:coverage",
49
+ "release": "node scripts/release.mjs",
50
+ "release:preview": "node scripts/release.mjs --preview"
49
51
  },
50
52
  "type": "module",
51
53
  "devDependencies": {
@@ -54,7 +56,7 @@
54
56
  "typescript": "^5.9.3"
55
57
  },
56
58
  "dependencies": {
57
- "@beechcms/cli": "^0.4.0-preview.4",
59
+ "@beechcms/cli": "^0.4.0-preview.6",
58
60
  "@clack/prompts": "^0.9.1",
59
61
  "picocolors": "^1.1.1"
60
62
  }