DEV Community

Discussion on: How to organise NPM scripts in package.json?

Collapse
 
17cupsofcoffee profile image
Joe Clay

This is a cool trick :)

Makes me wish Node/NPM had used a file format that supports comments, though - Rust uses TOML, and it's hard to go back to JSON for config files after using that :(

Collapse
 
ycmjason profile image
YCM Jason

Yes! Although it isn't really a solution, it does the trick if we want a neater npm run output.

I am happy you find this trick useful.