Move DependencyGraph.js so the original file is not left over after yarn bundle
#1732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR insures that
DependencyGraph.js
is not left in the root directory after runningyarn bundle
Description
Running
yarn bundle
patches metro to not watch files while bundling (original PR). It does this by copying a patchedDependencyGraph.js
file into the node_modules folder before bundling that disables watching. Then after bundling is finished it copies the originalDependencyGraph.js
file back intonode_modules
, but it (currently) leaves that file at the root of the directory.This PR uses
mv
instead ofcp
when restoring thatDependencyGraph.js
back to thenode_modules
folder. As a result, after runningyarn bundle
there is no longer a leftoverDependencyGraph.js
file in the root directory.To Test
yarn clean:install
yarn bundle
yarn bundle
completed successfully; andDependencyGraph.js
file in the root folder after the command completesOnce this PR is merged we can remove the references to deleting
DependencyGraph.js
from our Release Checklist.PR submission checklist
RELEASE-NOTES.txt
if necessary.