Skip to content

Conversation

@dummdidumm
Copy link
Member

@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2024

🦋 Changeset detected

Latest commit: 5fcde5d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-migrate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@benmccann benmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally I would just bail if SvelteKit 1 is detected rather than trying to run both migrations because I think it would be good for the user to run the SvelteKit 2 migration and then commit the result to git before trying to run the next migration

}

const kit_dep = pkg.devDependencies?.['@sveltejs/kit'] ?? pkg.dependencies?.['@sveltejs/kit'];
if (kit_dep && semver.validRange(kit_dep) && semver.gtr('2.0.0', kit_dep)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a little surprising to me to see 2 > kit_dep vs kit_dep < 2

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yoda-speak - it's done like that in all other migration, I don't care honestly.

@benmccann benmccann added pkg:svelte-migrate Issues related to the svelte-migrate package svelte 5 labels Oct 5, 2024
@dominikg
Copy link
Member

dominikg commented Oct 5, 2024

agree with Ben, just log the command for the migration and ask them to do that first, commit and TEST the result before starting with svelte5 migration.

otherwise we'll get a few strange bug reports regarding svelte5 migration that are really about kit

@dummdidumm dummdidumm merged commit 44ef5ed into main Oct 5, 2024
@dummdidumm dummdidumm deleted the svelte-5-kit-2-migration branch October 5, 2024 17:23
This was referenced Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:svelte-migrate Issues related to the svelte-migrate package svelte 5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration: vitePreprocess path not updated properly

4 participants