File tree 1 file changed +7
-8
lines changed
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,12 @@ class Npm : NpmApiExecution<NpmEnvironment> {
88
88
args : List <String >,
89
89
) {
90
90
services.execWithProgress(description) { exec ->
91
- val arguments = listOf (" install" ) + args
92
- .plus(
93
- if (logger.isDebugEnabled) " --verbose" else " "
94
- )
95
- .plus(
96
- if (environment.ignoreScripts) " --ignore-scripts" else " "
97
- ).filter { it.isNotEmpty() }
91
+ val arguments = buildList {
92
+ add(" install" )
93
+ addAll(args)
94
+ if (logger.isDebugEnabled) add(" --verbose" )
95
+ if (environment.ignoreScripts) add(" --ignore-scripts" )
96
+ }
98
97
99
98
if (! environment.standalone) {
100
99
val nodeExecutable = nodeJs.nodeExecutable
@@ -136,4 +135,4 @@ class Npm : NpmApiExecution<NpmEnvironment> {
136
135
rootPackageJsonFile
137
136
)
138
137
}
139
- }
138
+ }
You can’t perform that action at this time.
0 commit comments