aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules
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
parentb18609579c9950394c389d7a9a05b63f49b47888 (diff)
downloadkvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.tar.gz
kvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.tar.bz2
kvision-ee6ec96cce33237f2e7335058c7e3c25fe953c37.zip
Fix package.json generation.
Diffstat (limited to 'kvision-modules')
-rw-r--r--kvision-modules/kvision-bootstrap-css/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap-datetime/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap-select/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap-spinner/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap-typeahead/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap-upload/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-bootstrap/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-chart/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-fontawesome/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-handlebars/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-i18n/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-maps/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-moment/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-pace/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-redux/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-richtext/build.gradle.kts4
-rw-r--r--kvision-modules/kvision-tabulator/build.gradle.kts4
17 files changed, 51 insertions, 17 deletions
diff --git a/kvision-modules/kvision-bootstrap-css/build.gradle.kts b/kvision-modules/kvision-bootstrap-css/build.gradle.kts
index d9df96e0..f686d3fe 100644
--- a/kvision-modules/kvision-bootstrap-css/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-css/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-bootstrap-datetime/build.gradle.kts b/kvision-modules/kvision-bootstrap-datetime/build.gradle.kts
index f2340ad9..900553a9 100644
--- a/kvision-modules/kvision-bootstrap-datetime/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-datetime/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
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 {
diff --git a/kvision-modules/kvision-bootstrap-spinner/build.gradle.kts b/kvision-modules/kvision-bootstrap-spinner/build.gradle.kts
index 19453b54..3a4629bf 100644
--- a/kvision-modules/kvision-bootstrap-spinner/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-spinner/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-bootstrap-typeahead/build.gradle.kts b/kvision-modules/kvision-bootstrap-typeahead/build.gradle.kts
index a5fbfaf9..3e1446ff 100644
--- a/kvision-modules/kvision-bootstrap-typeahead/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-typeahead/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-bootstrap-upload/build.gradle.kts b/kvision-modules/kvision-bootstrap-upload/build.gradle.kts
index 4fcaa183..ccafbf30 100644
--- a/kvision-modules/kvision-bootstrap-upload/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-upload/build.gradle.kts
@@ -56,7 +56,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 {
diff --git a/kvision-modules/kvision-bootstrap/build.gradle.kts b/kvision-modules/kvision-bootstrap/build.gradle.kts
index bed8be05..7910091a 100644
--- a/kvision-modules/kvision-bootstrap/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap/build.gradle.kts
@@ -44,6 +44,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-chart/build.gradle.kts b/kvision-modules/kvision-chart/build.gradle.kts
index 78c4ef43..841eb991 100644
--- a/kvision-modules/kvision-chart/build.gradle.kts
+++ b/kvision-modules/kvision-chart/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-fontawesome/build.gradle.kts b/kvision-modules/kvision-fontawesome/build.gradle.kts
index 31231570..a75ccca7 100644
--- a/kvision-modules/kvision-fontawesome/build.gradle.kts
+++ b/kvision-modules/kvision-fontawesome/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-handlebars/build.gradle.kts b/kvision-modules/kvision-handlebars/build.gradle.kts
index a5e3dbbf..abfbf17f 100644
--- a/kvision-modules/kvision-handlebars/build.gradle.kts
+++ b/kvision-modules/kvision-handlebars/build.gradle.kts
@@ -42,6 +42,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-i18n/build.gradle.kts b/kvision-modules/kvision-i18n/build.gradle.kts
index 80a20619..f074b84f 100644
--- a/kvision-modules/kvision-i18n/build.gradle.kts
+++ b/kvision-modules/kvision-i18n/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-maps/build.gradle.kts b/kvision-modules/kvision-maps/build.gradle.kts
index 143f0515..a5a1cba2 100644
--- a/kvision-modules/kvision-maps/build.gradle.kts
+++ b/kvision-modules/kvision-maps/build.gradle.kts
@@ -44,6 +44,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-moment/build.gradle.kts b/kvision-modules/kvision-moment/build.gradle.kts
index 31193544..c9a67ee9 100644
--- a/kvision-modules/kvision-moment/build.gradle.kts
+++ b/kvision-modules/kvision-moment/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-pace/build.gradle.kts b/kvision-modules/kvision-pace/build.gradle.kts
index 2bfd7dd4..2d847293 100644
--- a/kvision-modules/kvision-pace/build.gradle.kts
+++ b/kvision-modules/kvision-pace/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}
diff --git a/kvision-modules/kvision-redux/build.gradle.kts b/kvision-modules/kvision-redux/build.gradle.kts
index 15e65cf2..0fca329d 100644
--- a/kvision-modules/kvision-redux/build.gradle.kts
+++ b/kvision-modules/kvision-redux/build.gradle.kts
@@ -47,6 +47,8 @@ setupPublication()
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") }
+ }
}
}
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 {
diff --git a/kvision-modules/kvision-tabulator/build.gradle.kts b/kvision-modules/kvision-tabulator/build.gradle.kts
index 289483f3..e6e60bd2 100644
--- a/kvision-modules/kvision-tabulator/build.gradle.kts
+++ b/kvision-modules/kvision-tabulator/build.gradle.kts
@@ -41,6 +41,8 @@ setupPublication()
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") }
+ }
}
}