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

Handle argument deconstruction in npx #873

Closed
wants to merge 1 commit into from
Closed

Handle argument deconstruction in npx #873

wants to merge 1 commit into from

Conversation

ddanbeck
Copy link

@ddanbeck ddanbeck commented Feb 16, 2021

npx isn't honoring quotes around the command passed to husky add command.

There's currently a validation on add that prevents more than one from being passed. Removed this as it seems unnecessary, then joined the arguments after the cmd into a string to be passed to add.

Fixes #866
Fixes #871

Handle argument deconstruction in npx

npx isn't honoring quotes around the command passed to husky add<filename> command.

There's currently a validation on add that prevents more than one from being passed. Removed this as it seems unnecessary, then joined the arguments after the cmd into a string to be passed to add.
@typicode
Copy link
Owner

Thanks for the PR! It seems to have been fixed by npm v7.5.4

@ddanbeck
Copy link
Author

Yeah, it looks like its working on the latest npm. I'll close this since to my mind it's a bug in npx and this PR is a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants