Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ public String nodeVersion() {
return config.nodeVersion();
}

@Override
public String nodeFolder() {
return config.nodeFolder().map(File::getAbsolutePath).orElse(null);
}

@Override
public File npmFolder() {
return config.npmFolder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ public interface VaadinBuildTimeConfig {
@WithDefault(FrontendTools.DEFAULT_NODE_VERSION)
String nodeVersion();

/**
* The folder containing the Node.js executable.
* <p>
* When set, Node.js will be exclusively used from this folder. If not
* found, the build will fail. If not provided, Vaadin will try to detect an
* existing compatible Node.js installation or install it in Vaadin home
* directory.
*/
Optional<File> nodeFolder();

/**
* The folder where `package. json` file is located. Default is project root
* dir.
Expand Down