@beechcms/cms 0.6.6 → 0.6.7
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/create.mjs +12 -2
- package/package.json +6 -5
package/bin/create.mjs
CHANGED
|
@@ -107,7 +107,17 @@ function buildSeedsTs(selectedKeys) {
|
|
|
107
107
|
return buildSeedsFile(selectedKeys)
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
function getCurrentVersion() {
|
|
111
|
+
try {
|
|
112
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'))
|
|
113
|
+
return `^${pkg.version}`
|
|
114
|
+
} catch {
|
|
115
|
+
return '^0.6.6'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
110
119
|
function buildPackageJson(name) {
|
|
120
|
+
const version = getCurrentVersion()
|
|
111
121
|
return JSON.stringify({
|
|
112
122
|
name,
|
|
113
123
|
version: '0.1.0',
|
|
@@ -122,8 +132,8 @@ function buildPackageJson(name) {
|
|
|
122
132
|
'db:reset:local': 'node -e "require(\'fs\').rmSync(\'.wrangler/state\',{recursive:true,force:true})" && npm run db:migrate:local',
|
|
123
133
|
},
|
|
124
134
|
dependencies: {
|
|
125
|
-
'@beechcms/api':
|
|
126
|
-
'@beechcms/core':
|
|
135
|
+
'@beechcms/api': version,
|
|
136
|
+
'@beechcms/core': version,
|
|
127
137
|
},
|
|
128
138
|
devDependencies: {
|
|
129
139
|
'@cloudflare/workers-types': '^4.0.0',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beechcms/cms",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -53,18 +53,19 @@
|
|
|
53
53
|
"tsx": "^4.22.4",
|
|
54
54
|
"turbo": "^2.9.18",
|
|
55
55
|
"typedoc": "^0.28.20",
|
|
56
|
-
"
|
|
56
|
+
"typedoc-plugin-markdown": "^4.12.0",
|
|
57
|
+
"typescript": "^5.9.3",
|
|
57
58
|
"vitepress": "^1.6.4",
|
|
58
59
|
"vitest": "^4.1.0"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@beechcms/cli": "^0.6.
|
|
62
|
+
"@beechcms/cli": "^0.6.7",
|
|
62
63
|
"@clack/prompts": "^0.9.1",
|
|
63
64
|
"picocolors": "^1.1.1"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
|
-
"@beechcms/api": "^0.6.
|
|
67
|
-
"@beechcms/core": "^0.6.
|
|
67
|
+
"@beechcms/api": "^0.6.6",
|
|
68
|
+
"@beechcms/core": "^0.6.6"
|
|
68
69
|
},
|
|
69
70
|
"peerDependenciesMeta": {
|
|
70
71
|
"@beechcms/api": {
|