We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3702ac commit 8f52842Copy full SHA for 8f52842
npm-publish-gradle-plugin/src/main/kotlin/task/NpmPackTask.kt
@@ -87,8 +87,11 @@ public abstract class NpmPackTask : NpmExecTask() {
87
if (d) add("--dry-run")
88
}
89
npmExec(args) { it.workingDir(tmpDir) }.rethrowFailure()
90
- val outFile = tmpDir.listFiles()?.firstOrNull() ?: error("Internal error. Temporary packed file not found.")
91
- outFile.copyTo(oDir, true)
92
- if (!d) info { "Packed package at ${pDir.path} to ${oDir.path}" }
+ if (!d) {
+ val outFile =
+ tmpDir.listFiles()?.firstOrNull() ?: error("[npm-publish] Internal error. Temporary packed file not found.")
93
+ outFile.copyTo(oDir, true)
94
+ info { "Packed package at ${pDir.path} to ${oDir.path}" }
95
+ }
96
97
0 commit comments