Created by: gaearon
This fixes yarn create-react-app ../myproj
. It used to fail because we only replaced names with file URLs for react-script
deps. Not it does that for all packages.
Happy to change this to work via npm link
later but for now I just wanted to fix the existing approach.
I also made it fail on non-clean repo state, and reset its edits to package.json
files on exit.