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

Feature/pass filename to prettier #620

Merged
merged 12 commits into from
Jun 23, 2020
Merged
3 changes: 2 additions & 1 deletion lib/src/main/java/com/diffplug/spotless/npm/NpmProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ void install() {
}

Process start() {
return npm("start");
// adding --scripts-prepend-node-path=true due to https://github.com/diffplug/spotless/issues/619#issuecomment-648018679
return npm("start", "--scripts-prepend-node-path=true");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a reaction to the discussion in #619 - make sure we always use the node binary associated with the npm binary we use.

}

private void npmAwait(String... args) {
Expand Down