Skip to content

Conversation

@c-f-h
Copy link

@c-f-h c-f-h commented Mar 2, 2016

This fixes a bug when using NPM@3. Here it's quite common that both handy and to are installed into the project's top-level node_modules directory. As such getVersion would actually access the project's package.json and not that of handy.

There is another pull request for this but it has a bug itself, since it tries to pass the 'package.json' file to getVersion(), but the latter actually wants a module path.

This fixes a bug when using NPM@3. Here it's quite common that both `handy` and `to` are installed into the project's top-level `node_modules` directory. As such `getVersion` would actually access the project's package.json and not that of handy.
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.

1 participant