DEV Community

Discussion on: best practices in publishing npm package

Collapse
 
stereobooster profile image
stereobooster • Edited

People implement 2 packages, so that one can be installed globally (cli one). I avoid installing globals though, I always prefer local installation and for cli I use yarn cli-name

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Global packages are a bit unnecessary in my opinion due to npx. But that said a lib and a client (cli) is a good idea.

Collapse
 
5anthosh profile image
Santhosh Kumar

it seems good idea, thanks