run-migration

Installation
SKILL.md

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

  1. Identify the target site workspace. The user will specify which site to migrate. Its origin/main must hold the original Fresh/Deno code.

  2. Reset the target to Fresh/Deno state:

    cd <target-dir>
    git checkout origin/main -- .
    git checkout -- .
    git clean -fd
    

    This restores the original Fresh/Deno source code.

Installs
12
Repository
decocms/blocks
GitHub Stars
5
First Seen
Apr 16, 2026
run-migration — decocms/blocks