tnobody / lerna-audit

Micro util to run npm audit in lerna monorepos
9 stars 11 forks source link

fix: Backup original file instead of overwrite #2

Closed stieg closed 4 years ago

stieg commented 4 years ago

Doing a file backup allows for restoration in event of SIGKILL or other unexpected termination in a situation where a version manager might not be in use.

Also make use of require to load the JSON file saving code and lowering the footprint of the program in the process.

tnobody commented 4 years ago

Hi @stieg thanks for your contribution. I like the implementation since it is way closer to the behavior of lerna 👍