We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e33cc6 commit d01f926Copy full SHA for d01f926
gradle/publish-npm-js.gradle
@@ -21,11 +21,12 @@ def npmDeployTag = distTag(version)
21
def authToken = prop("kotlin.npmjs.auth.token", "")
22
def dryRun = prop("dryRun", "false")
23
24
-task preparePublishNpm(type: Copy, dependsOn: [compileKotlin2Js]) {
+// Note: publish transformed files using dependency on sourceSets.main.output
25
+task preparePublishNpm(type: Copy) {
26
from(npmTemplateDir) {
27
expand (project.properties + [kotlinDependency: "\"kotlin\": \"$kotlin_version\""])
28
}
- from("$buildDir/classes/kotlin/main")
29
+ from(sourceSets.main.output)
30
into npmDeployDir
31
32
0 commit comments