Skip to content

Reinstall node if necessary#867

Merged
nedtwigg merged 2 commits intodiffplug:mainfrom
fdw:863-reinstall-node
May 13, 2021
Merged

Reinstall node if necessary#867
nedtwigg merged 2 commits intodiffplug:mainfrom
fdw:863-reinstall-node

Conversation

@fdw
Copy link
Copy Markdown
Contributor

@fdw fdw commented May 13, 2021

If node has been deleted between Spotless installing it and using it
(for example because React's build removes everything from the build
dir), it is not re-installed.

Fixes #863

@fdw
Copy link
Copy Markdown
Contributor Author

fdw commented May 13, 2021

I couldn't think of a good way to test this, unfortunately. If you have an idea, please share :)

Copy link
Copy Markdown
Member

@nedtwigg nedtwigg left a comment

Choose a reason for hiding this comment

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

  • Run spotlessApply
  • Did you integration test on your machine to confirm that it fixed your problem?

Comment thread lib/src/main/java/com/diffplug/spotless/npm/NodeServerLayout.java Outdated
fdw added 2 commits May 13, 2021 21:17
If node has been deleted between Spotless installing it and using it
(for example because React's `build` removes everything from the `build`
dir), it is not re-installed.

Fixes #863
@fdw
Copy link
Copy Markdown
Contributor Author

fdw commented May 13, 2021

Run spotlessApply

Oh, I'm so sorry. Fixed now.

Did you integration test on your machine to confirm that it fixed your problem?

Yes, and it works :)

@nedtwigg nedtwigg merged commit cb81514 into diffplug:main May 13, 2021
@nedtwigg
Copy link
Copy Markdown
Member

Shipped in plugin-maven 2.11.1 and plugin-gradle 5.12.5

@fdw
Copy link
Copy Markdown
Contributor Author

fdw commented May 14, 2021

That was very quick and nice. Thank you very much!

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.

Prettier dies when directory is removed before spotlessApply

2 participants