Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ohroy
Copy link
Contributor

@ohroy ohroy commented Jan 25, 2024

npm_package_json env is not supported by pnpm now. (but npm and yarn works)

This is not a perfect fix, the user may not run husky init in project root. in this case, we need more code that npm and yarn user doest't need, I think this is unfair. So, we can simple add one line here utill the pnpm support it.

The other way is update doc, let users define a env named npm_package_json before husky init, but I think that is too complex for users.

@typicode
Copy link
Owner

Unless I'm overlooking something, I think we can remove process.env.npm_package_json and simply use package.json, as most users execute commands at the same level as package.json

@typicode typicode merged commit 34ace26 into typicode:main Jan 25, 2024
@ohroy
Copy link
Contributor Author

ohroy commented Jan 25, 2024

fullly agree, clean and beautiful now

@ohroy ohroy deleted the patch-2 branch January 25, 2024 14:30
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.

4 participants