From e63c02205eb9724ace290927e3d0a9b61724acb5 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 5 May 2020 12:02:45 +0200 Subject: Disable npm packages versions resolution ... until next time someone, somewhere breaks something ;-) --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { 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") } -- cgit