File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,10 +54,11 @@ dependencies {
5454
5555val frontendDir = layout.projectDirectory.dir(" src/main/frontend" )
5656val frontendOutputDir = layout.buildDirectory.dir(" generated/frontend-resources/httpd/app" )
57+ val bunExecutable = findProperty(" bunPath" )?.toString() ? : " bun"
5758
5859tasks.register<Exec >(" bunInstallFrontend" ) {
5960 workingDir = frontendDir.asFile
60- commandLine(" bun " , " install" , " --frozen-lockfile" )
61+ commandLine(bunExecutable , " install" , " --frozen-lockfile" )
6162 inputs.files(
6263 frontendDir.file(" package.json" ),
6364 frontendDir.file(" bun.lock" )
@@ -67,7 +68,7 @@ tasks.register<Exec>("bunInstallFrontend") {
6768
6869tasks.register<Exec >(" buildFrontend" ) {
6970 workingDir = frontendDir.asFile
70- commandLine(" bun " , " run" , " build" )
71+ commandLine(bunExecutable , " run" , " build" )
7172 dependsOn(" bunInstallFrontend" )
7273 inputs.dir(frontendDir.dir(" src" ))
7374 inputs.files(
You can’t perform that action at this time.
0 commit comments