tnobody / lerna-audit

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

Aborting lerna-audit (STRG+C) should restore original package.json #6

Closed svettwer closed 4 years ago

svettwer commented 4 years ago

As a user, I want lerna-audit to restore the original package.json in case I abort the process, so that my package.json is not corrupted.

Additional information When I abort the process currently, the resulting package.json lacks the lerna-internal-dependencies stored in memory. If you rerun the process, it might be successful, but the lerna-internal-dependencies are still lost. Therefore one should think about restoring the original package.json in case of a SIGKILL oder SIGINT.

tnobody commented 4 years ago

Resolved by #9