aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-05-05 12:02:45 +0200
committerRobert Jaros <rjaros@finn.pl>2020-05-05 12:02:45 +0200
commite63c02205eb9724ace290927e3d0a9b61724acb5 (patch)
tree638703ef91666fb54e081ae1d7503cb5bcff4e89
parent0b349de3cc699b54b02d7177418c8cf155afe929 (diff)
downloadkvision-e63c02205eb9724ace290927e3d0a9b61724acb5.tar.gz
kvision-e63c02205eb9724ace290927e3d0a9b61724acb5.tar.bz2
kvision-e63c02205eb9724ace290927e3d0a9b61724acb5.zip
Disable npm packages versions resolution ... until next time someone, somewhere breaks something ;-)
-rw-r--r--build.gradle.kts5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index b0609400..05c6df5f 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -83,18 +83,21 @@ fun copyResources() {
}
tasks {
+ /*
+ // Forcing specific npm package versions (not required at the moment but commented for future use)
withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask> {
doLast {
yarnLock.parentFile.resolve("package.json").apply {
writeText(readText().replace(
"\"dependencies\": {},",
- "\"dependencies\": {},\n \"resolutions\": { \"moment\": \"2.24.0\", \"jquery\": \"3.4.1\" },"
+ "\"dependencies\": {},\n \"resolutions\": { \"jquery\": \"3.4.1\" },"
))
}
org.jetbrains.kotlin.gradle.targets.js.yarn.YarnWorkspaces()
.yarnExec(project, yarnLock.parentFile, "Relaunching Yarn to fix resolutions")
}
}
+ */
getByName("JsJar", Jar::class) {
from("${project.buildDir}/js/packages/kvision/package.json")
}