From ee6ec96cce33237f2e7335058c7e3c25fe953c37 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 12 Mar 2020 19:27:50 +0100 Subject: Fix package.json generation. --- kvision-modules/kvision-bootstrap-select/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kvision-modules/kvision-bootstrap-select') diff --git a/kvision-modules/kvision-bootstrap-select/build.gradle.kts b/kvision-modules/kvision-bootstrap-select/build.gradle.kts index 1db76c5d..378a14f1 100644 --- a/kvision-modules/kvision-bootstrap-select/build.gradle.kts +++ b/kvision-modules/kvision-bootstrap-select/build.gradle.kts @@ -53,7 +53,9 @@ fun copyResources() { tasks { getByName("JsJar", Jar::class) { - from("${rootProject.buildDir}/js/packages/kvision-${project.name}/package.json") + from("${rootProject.buildDir}/js/packages/kvision-${project.name}/package.json") { + filter { it.replace("\"main\": \"kotlin/kvision-kvision", "\"main\": \"kvision-kvision") } + } } getByName("compileTestKotlinJs") { doLast { -- cgit