Package com.diffplug.spotless.npm
Class NpmPathResolver
java.lang.Object
com.diffplug.spotless.npm.NpmPathResolver
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds the node executable to use.Finds the npm executable to use.
-
Constructor Details
-
NpmPathResolver
-
-
Method Details
-
resolveNpmExecutable
Finds the npm executable to use.
Either the explicit npm executable is returned, or - if an explicit node executable is configured - tries to find the npm executable relative to the node executable. Falls back to looking for npm on the user's system usingNpmExecutableResolver
- Returns:
- the npm executable to use
- Throws:
IllegalStateException
- if no npm executable could be found
-
resolveNodeExecutable
Finds the node executable to use.
Either the explicit node executable is returned, or tries to find the node executable relative to the npm executable found byresolveNpmExecutable()
.- Returns:
- the node executable to use
- Throws:
IllegalStateException
- if no node executable could be found
-
resolveNpmrcContent
-