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

Specify paths to be ignored by svelte-migrate #390

Open
kristiankunc opened this issue Jan 9, 2025 · 0 comments · May be fixed by #391
Open

Specify paths to be ignored by svelte-migrate #390

kristiankunc opened this issue Jan 9, 2025 · 0 comments · May be fixed by #391

Comments

@kristiankunc
Copy link

svelte-migrate currently gives the option to select paths to be migrated, but those are only first-level child directories. I'd like to be able to specify paths to explicitly ignore.

When is this useful?
I've recently came across this when trying to migrate to svelte@5 while using shadcn-svelte - a library which saves components to the src/lib/components and migrating them may not be the desired behaviour.

A good approach to avoid any clutter in the cli would be to use an optional argumen/option when running sv migrate to explicitly ignore certain paths.

dummdidumm added a commit that referenced this issue Jan 9, 2025
This adds two new prompts to the Svelte migration:
- custom folder prompt (from multiselect); if selected you can specify what folders exactly to migrate. closes #390
- adds a way to skip migrating your components if you want to do it incrementally but still benefit from having your package.json and entry points migrated automatically
@dummdidumm dummdidumm linked a pull request Jan 9, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant