sveltejs / cli

The Svelte CLI
MIT License
259 stars 11 forks source link

Rename `--check-types` to `--types`, and adjust options? #239

Closed Rich-Harris closed 3 weeks ago

Rich-Harris commented 3 weeks ago

I don't think of types as primarily about checking, that's just one of the things that types enable. And having typescript and checkjs options feels weird and asymmetrical. I would suggest this:

npx sv create --types=ts
npx sv create --types=jsdoc

Also, why is it --check-types=none rather than --no-types? Feels weird alongside --no-add-ons and --no-install.