Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

add NPM 5 support #17

Merged
merged 2 commits into from
Oct 19, 2017
Merged

add NPM 5 support #17

merged 2 commits into from
Oct 19, 2017

Conversation

jpdriver
Copy link
Contributor

This will still create symlinks as part of whack link <package_name>, which will break running the RN Packager directly.

That shouldn't be too much of an issue though, as from there users should be doing whack run start ( / similar).

Once the server is running, we removeSync any symlinks we encounter (so we don't break the RN Bundler), and pass that directory to rsync as before.

assert.isNotSymlinked(packageLookup[key]);
if (assert.isSymlinked(packageLookup[key])) {
const packagePath = path.resolve(process.cwd(), 'node_modules', packageLookup[key]);
fs.removeSync(packageLookup[key]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be packagePath?

Copy link
Contributor

@jevakallio jevakallio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jevakallio jevakallio merged commit a0c7de3 into master Oct 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants