Skip to content

Add note to 3.0 migration guide about svelte-kit sync migration #13326

Open
@benmccann

Description

@benmccann

Describe the bug

In #13304, we are removing SvelteKit's preinstall script. Users should now ensure that their package.json contains:

"prepare": "svelte-kit sync"

In not present, users will see the following the first time they run Vite:

▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This will be added to the template for new users, but existing projects should be migrated. We did this in a minor 2.x release in order to support the release of pnpm 10 since it only causes an extra message and not real harm. We did not automatically migrate existing projects. We had discussed printing a warning to notify users, but there was concern about false positives.

It would be good for the 3.x release notes to mention this and the migration tool to handle this if there is such a migration tool. While this change happened before 3.x, many users aren't going to check intermediate release notes and would not be aware they should make this change and so we should use the 3.x release to raise awareness.

Reproduction

n/a

Logs

System Info

n/a

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions