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

Use script-shell from npm config to run the package.json scripts #65

Open
iki opened this issue Jan 31, 2023 · 0 comments
Open

Use script-shell from npm config to run the package.json scripts #65

iki opened this issue Jan 31, 2023 · 0 comments

Comments

@iki
Copy link

iki commented Jan 31, 2023

It's a common practice on projects to use shell syntax in package.json scripts and developers on Windows use script-shell config in .npmrc:

script-shell=C:\Program Files\git\bin\bash.exe

or case-insensitive env:

npm_config_script_shell=C:\Program Files\git\bin\bash.exe 

Without that dum on Windows fails to run many scripts on our projects.

Willing to learn Rust and make a PR if you like :)

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

No branches or pull requests

1 participant