FormidableLabs / inspectpack

An inspection tool for Webpack frontend JavaScript bundles.
MIT License
591 stars 20 forks source link

Exit Code for duplicates #138

Closed alexander-schranz closed 4 years ago

alexander-schranz commented 4 years ago

I want to use npx inspectpack -s stats.json --action duplicates in my ci to validate if there are duplicates. For this it would be great if it would return a different exit code if it found duplicates or not. So no duplicates exit code 0 and duplicates exit code 1.

ryan-roemer commented 4 years ago

Seems like a reasonable request for --action duplicates|version maybe with an optional --bail flag?