-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
fix(husky): stdin is not a tty in git bash #766
Conversation
e8cd85a
to
8a76d9d
Compare
Isn't this only relevant for Yarn? The code is generated even if the user has selected Npm. Also what's the purpose of |
Fair point, pr is always welcome or I’ll make a fix within this week. |
Git Bash workaround for using tty, which is officially recommended by husky in their documentation, is only relevant for yarn, not for npm. Removed isWindows condition make sure projects made by Linux devs are fully accessible to Windows users. Updated husky in a parent project.
Git Bash workaround for using tty, which is officially recommended by husky in their documentation, is only relevant for yarn, not for npm. Removed isWindows condition make sure projects made by Linux devs are fully accessible to Windows users. Updated husky in a parent project. Added --no-install to npx to avoid accidental installation by default if a project uses different than latest version, but isn't installed.
PR sent. I was considering whether it'd be better to keep an empty common.sh for any future use when npm is selected, but as this is a workaround created by husky it'd be most likely redundant, so I just removed it. I also included one suggestion of an improvement based on zkat/npx#220. I wasn't really used to the codebase of this generator, so I hope I tested it correctly. By the way, is there any contributor guide to this project? New users currently have to figure out how to run the project by running |
Thanks for the pr. Regarding contributor guide, we’ll add to this repo shortly. |
[Off-topic] Not related to PR, but regarding the contributor guide, I'll just mention that the SAO will most likely need some explicit guidelines and workarounds in addition to their official docs, as it seems it lacks basic things like file copy and doesn't support EJS features. Here is my today's experience: saojs/sao#176. (And I guess escaping quotes of constants via ESL in package.js isn't straightforward either. Maybe the |
See https://typicode.github.io/husky/#/?id=yarn-on-windows