Skip to content

Commit 002b1c1

Browse files
committed
fix: compileKotlinJs -> jsBrowserDistribution
`compileKotlinJs` only compiles the IR, while `jsBrowserDistribution` outputs a JS file (which is what we want).
1 parent a74b2cb commit 002b1c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kotlin-userscript/src/main/kotlin/dev/datamodel/userscript/KotlinUserscriptPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class KotlinUserscriptPlugin : Plugin<Project> {
2727
register("generateUserscript") {
2828
group = "other"
2929
description = "Adds a preamble needed by plugins like Tampermonkey, adds a proper file extension, and other."
30-
dependsOn("compileKotlinJs")
30+
dependsOn("jsBrowserDistribution")
3131
doLast {
3232
println("Generating a userscript...")
3333
val defaultInputFilePath = "build/distributions/${project.name}.js"

0 commit comments

Comments
 (0)