Closed Mortinke closed 2 years ago
Would an option nodePath
be better or maybe something more generic like useLocalNode
? The latter would have the advantage that the OS chooses which node to use.
I think nodePath
could cover both cases, because if you want to use whichever version of node is on your path then you could just pass nodePath=node
For any person using alpine container linux can use my patch to build prettier maven plugin and then use customized nodePath as you wish
Hi,
firstly, thanks for this plugin! We would like to use this plugin in our CI pipeline in which we use Alpine Container Images. Unfortunately the currently available Node 8 & 10 binaries doesn't work in Alpine. To use the plugin in Alpine, we have to replace the plugin node binaries with the Alpine node binaries (installed with
apk add nodejs
).Instead of adding the Alpine binaries to the project, we thought about supporting a local node. What do you think about to introduce new cli option like
prettier.nodePath
where?