Skip to content

Conversation

@johnyb
Copy link

@johnyb johnyb commented Oct 29, 2015

since npm@3, node_modules directory might be flattened out. Since version is supposed to be the version of the "to" library, getVersion should explicitly provide the package.json of the project, instead of relying on handy to determine the correct one.

This fixes helpers/handlebars-helpers#199

since npm@3, node_modules directory might be flattened out. Since version is supposed to be the version of the "to" library, getVersion should explicitly provide the package.json of the project, instead of relying on handy to determine the correct one.

This fixes helpers/handlebars-helpers#199
@c-f-h
Copy link

c-f-h commented Feb 11, 2016

I've hit the same problem... unfortunately this package seems to be abandoned.

@c-f-h
Copy link

c-f-h commented Mar 2, 2016

Note: this PR has a bug itself, it tries to feed the path to package.json into getVersion(), which actually expects the package path. Even more, it creates the wrong path since it looks for a package.json in the same directory as to.js, whereas it should be one directory higher.

I submitted another PR which fixes this: #4

@johnyb
Copy link
Author

johnyb commented Mar 2, 2016

Oh, you are right … No need for this to stay open, then. Thanks for the information

@johnyb johnyb closed this Mar 2, 2016
@johnyb johnyb deleted the patch-1 branch March 2, 2016 11:51
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.

handlebars does not support render.

2 participants