sv migrate
sv migrate
migrates Svelte(Kit) codebases. It delegates to the svelte-migrate
package.
Some migrations may annotate your codebase with tasks for completion that you can find by searching for @migration
.
Usage
npx sv migrate [migration]
Migrations
svelte-5
Upgrades a Svelte 4 app to use Svelte 5, and updates individual components to use runes and other Svelte 5 syntax (see migration guide).
svelte-4
Upgrades a Svelte 3 app to use Svelte 4 (see migration guide).
sveltekit-2
Upgrades a SvelteKit 1 app to SvelteKit 2 (see migration guide).
package
Upgrades a library using @sveltejs/package
version 1 to version 2. See the pull request for more details.
routes
Upgrades a pre-release SvelteKit app to use the filesystem routing conventions in SvelteKit 1. See the pull request for more details.