sveltejs / cli

The Svelte CLI
MIT License
256 stars 9 forks source link

Warn if newer version is available #35

Open benmccann opened 1 month ago

Conduitry commented 1 month ago

I'm not wild about the CLI phoning home every time it's run.

benmccann commented 1 month ago

Well probably phoning to npm whether or not you consider that "home"

The background for this is that folks suggested in the maintainers meeting we should stop running it via npx and install it into the project. That would allow for sv check, etc. However, that means that you'll no longer be getting the latest version all the time and you do want the latest version when running sv add, etc.

pnpm alerts you when a newer version is available and I've generally felt like that's pretty nice

benmccann commented 1 month ago

Maybe we only do this for certain commands like add though. I don't think it would make as much sense to do for check

benmccann commented 1 month ago

We should also think about how this would work if the user is offline. Might need to timeout after 60s and offline flag