Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
326 stars 206 forks source link

Add a command to prune all generated/built files from a checkout #7180

Open ivanlei opened 1 year ago

ivanlei commented 1 year ago

What is the Problem Being Solved?

If a build fails (or even if it doesn't), the checkout will have numerous output files, node_modules / directories, built binary packages, etc. A command to prune all generated/built files from a checkout will help to minimize the chance that build artifacts on disk prevent further builds from succeeding.

Description of the Design

The command should either add to yarn clean or be some sort of yarn super-duper-clean

Security Considerations

Should be none

Scaling Considerations

Should be none

Test Plan

arirubinstein commented 1 year ago

perhaps git clean -dfx ?

mhofman commented 1 year ago

Indeed, I often run git clean -xfd && git submodule foreach --recursive git clean -xfd