Skip to content

Commit b4a118a

Browse files
committed
fix: upgrade to newer npm version for maybe fixing windows build
1 parent 6188a82 commit b4a118a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ void useNodeAndNpmFromNodeGradlePlugin() throws Exception {
3434
"repositories { mavenCentral() }",
3535
"node {",
3636
" download = true",
37-
" version = '18.13.0'",
38-
" npmVersion = '8.19.2'",
37+
" version = '18.16.1'",
38+
" npmVersion = '9.5.1'",
3939
" workDir = file(\"${buildDir}/nodejs\")",
4040
" npmWorkDir = file(\"${buildDir}/npm\")",
4141
"}",
@@ -111,7 +111,7 @@ void useNpmFromNodeGradlePlugin() throws Exception {
111111
"repositories { mavenCentral() }",
112112
"node {",
113113
" download = true",
114-
" version = '18.13.0'",
114+
" version = '18.16.1'",
115115
" workDir = file(\"${buildDir}/nodejs\")",
116116
"}",
117117
"def prettierConfig = [:]",

plugin-gradle/src/test/resources/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest_gradle_node_plugin_example_1.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ plugins {
99
repositories { mavenCentral() }
1010
node {
1111
download = true
12-
version = '18.13.0'
13-
npmVersion = '8.19.2'
12+
version = '18.16.1'
13+
npmVersion = '9.5.1'
1414
// when setting both these directories, npm and node will be in separate directories
1515
workDir = file("${buildDir}/nodejs")
1616
npmWorkDir = file("${buildDir}/npm")

plugin-gradle/src/test/resources/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest_gradle_node_plugin_example_2.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
repositories { mavenCentral() }
1010
node {
1111
download = true
12-
version = '18.13.0'
12+
version = '18.16.1'
1313
// when not setting an explicit `npmWorkDir`, the npm binary will be installed next to the node binary
1414
workDir = file("${buildDir}/nodejs")
1515
}

0 commit comments

Comments
 (0)