Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate one component at the time with the CLI #278

Open
einarpersson opened this issue Nov 5, 2024 · 2 comments
Open

Migrate one component at the time with the CLI #278

einarpersson opened this issue Nov 5, 2024 · 2 comments

Comments

@einarpersson
Copy link

Hi!

In the migration guide the CLI is recommended for migration of a whole app (or folders) - but if you want to migrate one component at the time you are out of luck if you are not using VSCode. This is something that should be available through the CLI, for all svelte users regardless of their editor preference in my opinion.

npx migrate svelte-5 <component.svelte>

@benmccann
Copy link
Member

As a workaround, you can migrate the whole project, commit the changes to the file you would like to migrate, then revert the rest.

@manuel3108
Copy link
Member

Makes sense. @benmccann would you mind moving this to the kit repo, as the migration script still lies there?

@Conduitry Conduitry transferred this issue from sveltejs/cli Nov 5, 2024
@benmccann benmccann transferred this issue from sveltejs/kit Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants