We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d298b21 commit 8757e77Copy full SHA for 8757e77
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/Npm.kt
@@ -141,12 +141,12 @@ class Npm internal constructor(
141
) {
142
val progressLogger = objects.newBuildOpLogger()
143
execWithProgress(progressLogger, description, execOps = execOps) { execSpec ->
144
- val arguments: List<String> = mutableListOf<String>().apply {
+ val arguments = buildList {
145
add("install")
146
- addAll(args)
+ addAll(args.filter(String::isNotEmpty))
147
if (logger.isDebugEnabled) add("--verbose")
148
if (environment.ignoreScripts) add("--ignore-scripts")
149
- }.filter { it.isNotEmpty() }
+ }
150
151
if (!environment.standalone) {
152
val nodeExecutable = nodeJs.nodeExecutable
0 commit comments