@decocms/start 0.41.0 → 0.42.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/README.md +11 -5
- package/package.json +7 -1
- package/scripts/migrate.ts +6 -6
package/README.md
CHANGED
|
@@ -79,13 +79,19 @@ The skill handles compatibility checking, import rewrites, config generation, se
|
|
|
79
79
|
### Or run the script manually
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
# From
|
|
83
|
-
npx
|
|
84
|
-
|
|
85
|
-
# Preview first without writing:
|
|
86
|
-
npx tsx node_modules/@decocms/start/scripts/migrate.ts --source /path/to/fresh-site --dry-run --verbose
|
|
82
|
+
# From your Fresh site directory (nothing to install beforehand):
|
|
83
|
+
npx -p @decocms/start deco-migrate
|
|
87
84
|
```
|
|
88
85
|
|
|
86
|
+
**Options:**
|
|
87
|
+
|
|
88
|
+
| Flag | Description |
|
|
89
|
+
|------|-------------|
|
|
90
|
+
| `--source <dir>` | Source directory (default: current directory) |
|
|
91
|
+
| `--dry-run` | Preview changes without writing files |
|
|
92
|
+
| `--verbose` | Show detailed output |
|
|
93
|
+
| `--help`, `-h` | Show help message |
|
|
94
|
+
|
|
89
95
|
The script runs 7 phases automatically:
|
|
90
96
|
|
|
91
97
|
1. **Analyze** — scan source, detect Preact/Fresh/Deco patterns
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/start",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
|
|
6
6
|
"main": "./src/index.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"deco-migrate": "./scripts/migrate.ts"
|
|
9
|
+
},
|
|
7
10
|
"exports": {
|
|
8
11
|
".": "./src/index.ts",
|
|
9
12
|
"./cms": "./src/cms/index.ts",
|
|
@@ -80,6 +83,9 @@
|
|
|
80
83
|
"registry": "https://registry.npmjs.org",
|
|
81
84
|
"access": "public"
|
|
82
85
|
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"tsx": "^4.19.0"
|
|
88
|
+
},
|
|
83
89
|
"peerDependencies": {
|
|
84
90
|
"@tanstack/react-start": ">=1.0.0",
|
|
85
91
|
"@tanstack/store": ">=0.7.0",
|
package/scripts/migrate.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Converts a Deco storefront from the old Fresh/Deno stack to the new TanStack Start stack.
|
|
6
6
|
* Part of the @decocms/start framework — run from a site's root directory.
|
|
7
7
|
*
|
|
8
|
-
* Usage (from site
|
|
9
|
-
* npx
|
|
8
|
+
* Usage (from your Fresh site directory):
|
|
9
|
+
* npx -p @decocms/start deco-migrate [options]
|
|
10
10
|
*
|
|
11
11
|
* Options:
|
|
12
12
|
* --source <dir> Source directory (default: current directory)
|
|
@@ -71,7 +71,7 @@ function showHelp() {
|
|
|
71
71
|
@decocms/start — Migration Script: Fresh/Deno → TanStack Start
|
|
72
72
|
|
|
73
73
|
Usage:
|
|
74
|
-
npx
|
|
74
|
+
npx -p @decocms/start deco-migrate [options]
|
|
75
75
|
|
|
76
76
|
Options:
|
|
77
77
|
--source <dir> Source directory (default: .)
|
|
@@ -80,9 +80,9 @@ function showHelp() {
|
|
|
80
80
|
--help, -h Show this help message
|
|
81
81
|
|
|
82
82
|
Examples:
|
|
83
|
-
npx
|
|
84
|
-
npx
|
|
85
|
-
npx
|
|
83
|
+
npx -p @decocms/start deco-migrate --dry-run --verbose
|
|
84
|
+
npx -p @decocms/start deco-migrate --source ./my-site
|
|
85
|
+
npx -p @decocms/start deco-migrate
|
|
86
86
|
`);
|
|
87
87
|
}
|
|
88
88
|
|