sveltejs/template

`npm run dev` should also watch and build Typescript declarations

sangxxh opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

Currently, npm run dev doesn't rebuild Typescript declaration files on code changes. Only npm run build does

Describe the solution you'd like

Integrate Typescript generation of declaration files into dev script.

It looks like tsc execution will need to be moved into rollup.config.js instead of having it being a separate npm script as tsd as currently done. Currently, only build script and call npm run tsd because it's not a Rollup watch script:

Screenshot 2021-01-16 223856

Describe alternatives you've considered

How important is this feature to you?

This will improve DX.

Additional context

@Conduitry This issue should be in https://github.com/sveltejs/svelte/issues . Not sure why it was transferred to this repository?