jycouet / kitql

A set of standalone tools to SpeedRun WebApps!
https://kitql.dev
MIT License
401 stars 37 forks source link

`vite-plugin-kit-routes` ignores `js` files #660

Closed ryoppippi closed 2 months ago

ryoppippi commented 3 months ago

Describe the bug

When I create server endpoint with +server.js, that files ignores and type errors occur when using route function.

Severity

serious, but I can work around it

Steps to Reproduce the Bug

  1. bun create svelte and create with js/jsdoc
  2. following the setup of vite-plugin-kit-routes docs
  3. bun run dev
  4. We can't see the type definition of the endpoints with js files

Reproduction

No response

jycouet commented 3 months ago

Yes, today this plugin is working exclusivly in typescript. I didn't plan a js version for now.

ryoppippi commented 3 months ago

OK, then please add that information to README