salus
salus copied to clipboard
[DO NOT MERGE] auto fix spike
npm auto fix spike.
Use AUTOFIX in docker run.
docker run --rm --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local
Example 👍 output
%docker run --rm --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local
[INFORMATIONAL: 2022-06-30 17:38:19 +0000]: Salus is running.
**** RUNNING NPM AUTO FIX ****
Yay! npm audit fix ran successfully. Updated files renamed to
{"package-lock.json"=>"package-lock.json.autofix", "package.json"=>"package.json.autofix"}
Example 👎 output
% docker run --rm --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local
[INFORMATIONAL: 2022-06-30 17:41:48 +0000]: Salus is running.
**** RUNNING NPM AUTO FIX ****
ERROR! npm audit fix failed