Upgrade to SvelteKit 2

Proprietary

Upgrade @sveltejs/kit to 2.x in package.json. SvelteKit 2 requires Svelte 4 or later and Vite 5 or later. Not done by this recipe: upgrading Svelte and Vite, error() and redirect() no longer being thrown, goto external URLs, paths.relative and the other changes npx sv migrate sveltekit-2 makes.

org.openrewrite.nodejs.migrate.svelte.UpgradeToSvelteKit2
mod run . --recipe=org.openrewrite.nodejs.migrate.svelte.UpgradeToSvelteKit2

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.