From 5d0ccf8e3e6c68953830f1d9cb0a7094414e93e2 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 17 Mar 2021 12:18:03 +0100 Subject: [PATCH] Fix formatting in bump-version --- gulpfile.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 3279ee4..4348cab 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -205,16 +205,11 @@ function bumpVersion(cb) { console.log(`Updating version number to '${targetVersion}'`); packageJson.version = targetVersion; - fs.writeJSONSync("package.json", packageJson, { spaces: 2 }); - - if (packageLockJson) { - packageLockJson.version = targetVersion; - fs.writeJSONSync("package-lock.json", packageLockJson, { spaces: 2 }); - } + fs.writeJSONSync("package.json", packageJson, { spaces: 4 }); manifest.file.version = targetVersion; manifest.file.download = getDownloadURL(targetVersion); - fs.writeJSONSync(path.join(sourceDirectory, manifest.name), manifest.file, { spaces: 2 }); + fs.writeJSONSync(path.join(sourceDirectory, manifest.name), manifest.file, { spaces: 4 }); return cb(); } catch (err) {