Created by: gaearon
I inlined clean_pack.sh just like it’s already inlined in release.sh because this is too much indirection for me to be able to understand.
Changed the initial npm start / npm run build / npm test to happen before the cleanup because it is meant to test the local development environment.
Also added a few comments to clarify what’s going on.