aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-08-13 12:41:59 +0300
committerGravatar Vitaly Takmazov2020-08-13 12:41:59 +0300
commite2541a18838216ca05900e8c5b9c8c9705e7701e (patch)
treed7bcdfa22872a5ed960176dc009768d857b2f87c
parent37b885e37b3015e67766115a93b932f0f8c0e6a6 (diff)
Run Yarn with npx
-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'
}
}