Skip to content

feat: Migrate to SvelteKit 3 - #18

Draft
hhvrc wants to merge 4 commits into
masterfrom
feature/svelte-kit-3
Draft

feat: Migrate to SvelteKit 3#18
hhvrc wants to merge 4 commits into
masterfrom
feature/svelte-kit-3

Conversation

@hhvrc

@hhvrc hhvrc commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Run `sv migrate sveltekit-3`, then reconcile the output with the repo's
conventions:

- Remove svelte.config.js; SvelteKit 3 no longer reads it. `preprocess`
  moves to the sveltekit() options in vite.config.ts alongside the adapter
  and compilerOptions that already lived there.
- Drop the deprecated `config.alias` entry. `@openshock/svelte-core/*`
  specifiers resolve through the package's own `exports` field instead, so
  dev, build, check and the shadcn-svelte CLI all keep working without the
  deprecation warning.
- Point tsconfig at `$app/tsconfig` instead of ./.svelte-kit/tsconfig.json,
  dropping the compiler options it now supplies. Use `include: ["src", "*"]`
  rather than `["src"]` so vite.config.ts stays type-checked, as it was
  under the generated config.
- Keep the demo route on the `@openshock/svelte-core/*` self-name imports
  used everywhere else rather than the `#lib` subpath imports the migration
  introduced, so the repo has a single alias mechanism.

Verified with check (302 files, 0 errors), build, test (227 passing) and
lint.
@hhvrc hhvrc self-assigned this Aug 20, 2026
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ba584af0-4181-4a99-8343-ba066e55000a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

hhvrc added 3 commits August 20, 2026 14:28
Drop the changeset file; master removed changesets.
Brings #20, #21 and #22 onto the migration branch.

package.json keeps this branch's `next` pins for `@sveltejs/kit` and
`@sveltejs/adapter-auto` while taking master's removal of
`@sveltejs/package`, which #20 dropped and nothing here uses.

pnpm-lock.yaml is regenerated from this branch's copy rather than master's,
so the SvelteKit 3 prereleases stay pinned and master's dependency changes
resolve on top.

eslint.config.js needed a fix git could not see: it imported
`./svelte.config.js` for the parser's `svelteConfig` option, and the
migration deleted that file in favour of vite.config.ts. The option is an
optimisation rather than a requirement, so it is dropped here.
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 this pull request may close these issues.

1 participant