From 3affed66d6abf06cbaf4fb3dc3aad1304d7d3b05 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:08:00 +0200 Subject: [PATCH] try fixing annoying package.json differences --- .../dev/adamko/kafkatorio/task/UpdatePackageJson.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/kotlin/dev/adamko/kafkatorio/task/UpdatePackageJson.kt b/buildSrc/src/main/kotlin/dev/adamko/kafkatorio/task/UpdatePackageJson.kt index 943426e..ddfa6ce 100644 --- a/buildSrc/src/main/kotlin/dev/adamko/kafkatorio/task/UpdatePackageJson.kt +++ b/buildSrc/src/main/kotlin/dev/adamko/kafkatorio/task/UpdatePackageJson.kt @@ -31,9 +31,9 @@ abstract class UpdatePackageJson @Inject constructor( init { - group = NodePlugin.NODE_GROUP + group = NodePlugin.NPM_GROUP description = - "Read the package.json file and update the version and name, based on the project." + "Read the package.json file and update the version and name, based on the current project." outputs.upToDateWhen(JsonPropertiesUpToDateSpec) } @@ -53,8 +53,8 @@ abstract class UpdatePackageJson @Inject constructor( // change empty arrays/objects, because `npm install` also formats package.json, but // slightly differently to kxs. - .replace(": {\n },", ": {},") - .replace(": [\n ],", ": [],") + .replace( ": {\n }", ": {}") + .replace( ": [\n ]", ": []") .suffixIfNot("\n")