Skip to content

Recent SvelteKit 3.0 release makes fedify init SvelteKit option broken #1222

Description

@lego37yoon

As SvelteKit recently released its 3.0 version, sv create command automatically chooses SvelteKit 3.0 for the first initialization. However, SvelteKit 3.0 has some syntax changes that affects to the default templates included in the @fedify/init package.

Proposal

Update the syntax of hooks.server.ts included in the @fedify/init package, by changing $lib to #lib as the official migration guide introduces

What to do

One-line change may applied to the 2.4-maintenance branch, as SvelteKit template newly introduced in 2.4.0. Changes @fedify/init package only, replacing $lib to #lib

Testing

  • mise run test-each init to test the init package
  • create the new project with SvelteKit template and run fedify lookup http://localhost:5173/users/john to test if the lookup successful at the initial state of setup.

Related Issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions