From 034e0ec2e3e5300cc9418ed0fdd68e9d5c97a39e Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 8 May 2021 19:35:36 +0200 Subject: [PATCH] always write version with 2 spaces --- util/bump-version.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/bump-version.js b/util/bump-version.js index 4cd85ceb..37b3fba7 100755 --- a/util/bump-version.js +++ b/util/bump-version.js @@ -30,7 +30,6 @@ function processFile(name) { throw new Error('No match found!'); } data.version = version; - const numSpaces = name.endsWith('package-lock.json') ? 2 : 4; - const newContent = JSON.stringify(data, null, numSpaces) + '\n'; + const newContent = JSON.stringify(data, null, 2) + '\n'; fs.writeFileSync(name, newContent, 'utf8'); }