aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-richtext/build.gradle.kts
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-03-12 19:27:50 +0100
committerRobert Jaros <rjaros@finn.pl>2020-03-12 19:27:50 +0100
commitee6ec96cce33237f2e7335058c7e3c25fe953c37 (patch)
treec5e1cd7d8c8583e9017210cec2c39177a70c2b44 /kvision-modules/kvision-richtext/build.gradle.kts
parentb18609579c9950394c389d7a9a05b63f49b47888 (diff)
downloadkvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.tar.gz
kvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.tar.bz2
kvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.zip
Fix package.json generation.
Diffstat (limited to 'kvision-modules/kvision-richtext/build.gradle.kts')
-rw-r--r--kvision-modules/kvision-richtext/build.gradle.kts4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvision-modules/kvision-richtext/build.gradle.kts b/kvision-modules/kvision-richtext/build.gradle.kts
index b52b398d..f9aea3e7 100644
--- a/kvision-modules/kvision-richtext/build.gradle.kts
+++ b/kvision-modules/kvision-richtext/build.gradle.kts
@@ -52,7 +52,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 {