aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 929c2353..5aa2f2e2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -48,9 +48,9 @@ task yarn(type: Exec) {
inputs.file('yarn.lock')
outputs.file('yarn.lock')
if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) {
- commandLine 'cmd', '/c', 'yarn'
+ commandLine 'cmd', '/c', 'npx', 'yarn'
} else {
- commandLine 'yarn'
+ commandLine 'npx', 'yarn'
}
}
@@ -60,9 +60,9 @@ task yarnCompile(type: Exec) {
inputs.file('webpack.config.js')
outputs.dir('src/main/resources/static')
if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) {
- commandLine 'cmd', '/c', 'yarn', 'compile'
+ commandLine 'cmd', '/c', 'npx', 'yarn', 'compile'
} else {
- commandLine 'yarn', 'compile'
+ commandLine 'npx', 'yarn', 'compile'
}
}