legion
legion copied to clipboard
Api Codegen TypeScript: Clean cache before formating
Hopefully fixes this CI error https://github.com/legion-labs/legion/runs/6987927767?check_suite_focus=true that occurs randomly.
The error seems to be on the NPM cli side: https://github.com/npm/cli/issues/4096.
The fix itself is rather extreme as we basically clean the NPM cache each time the prettier command fails.