run-migration
Run Deco Migration (Fresh/Deno → TanStack)
Runs the Fresh→TanStack migrator from a local checkout of this repo against a target site. The migrator lives in packages/blocks-cli/scripts/migrate/ (entry point packages/blocks-cli/scripts/migrate.ts, also published as the deco-migrate bin of @decocms/blocks-cli). It scaffolds directly onto the split 7.x packages (@decocms/blocks, @decocms/tanstack, @decocms/blocks-admin, @decocms/blocks-cli, @decocms/apps-*).
Scope check first: this flow is for sites still on Fresh/Deno/Preact. If the target is already a TanStack Start site and only its @decocms/start@6.x + @decocms/apps@5.x dependencies are outdated, do NOT run the migrator — follow .agents/skills/decocms-v6-to-v7-upgrade/SKILL.md instead.
How to use
-
Identify the target site workspace. The user will specify which site to migrate. Its
origin/mainmust hold the original Fresh/Deno code. -
Reset the target to Fresh/Deno state:
cd <target-dir> git checkout origin/main -- . git checkout -- . git clean -fdThis restores the original Fresh/Deno source code.