Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support npm5 #40

Merged
merged 1 commit into from
Jun 5, 2017
Merged

Support npm5 #40

merged 1 commit into from
Jun 5, 2017

Conversation

staltz
Copy link
Contributor

@staltz staltz commented Jun 5, 2017

npm5 installs modules and changes their package.json::version field to be something like

  "version": "https://registry.npmjs.org/rn-nodeify/-/rn-nodeify-7.0.1.tgz",

instead of

  "version": "7.0.1",

This commit adds support for that first type of string but also supports npm4.

@mvayngrib
Copy link
Member

@staltz i thought i'd see you here eventually, after your visit to asyncstorage-down

looks good, though u prob need a null check. exec() may return null, then exec(...)[1] will throw an error

@staltz
Copy link
Contributor Author

staltz commented Jun 5, 2017

Oh right, sorry for that. Will fix.

npm5 installs modules and changes their `package.json`::`version` field to be something like
```
  "version": "https://registry.npmjs.org/rn-nodeify/-/rn-nodeify-7.0.1.tgz",
```
instead of
```
  "version": "7.0.1",
```

This commit adds support for that first type of string but also supports npm4.
@staltz
Copy link
Contributor Author

staltz commented Jun 5, 2017

Updated the PR

@mvayngrib mvayngrib merged commit 3df639a into tradle:master Jun 5, 2017
@mvayngrib
Copy link
Member

thanks!

@staltz staltz deleted the patch-1 branch June 5, 2017 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants