Fix formatting in bump-version

This commit is contained in:
Johannes Loher 2021-03-17 12:18:03 +01:00
parent e7fc318ea5
commit 5d0ccf8e3e

View file

@ -205,16 +205,11 @@ function bumpVersion(cb) {
console.log(`Updating version number to '${targetVersion}'`); console.log(`Updating version number to '${targetVersion}'`);
packageJson.version = targetVersion; packageJson.version = targetVersion;
fs.writeJSONSync("package.json", packageJson, { spaces: 2 }); fs.writeJSONSync("package.json", packageJson, { spaces: 4 });
if (packageLockJson) {
packageLockJson.version = targetVersion;
fs.writeJSONSync("package-lock.json", packageLockJson, { spaces: 2 });
}
manifest.file.version = targetVersion; manifest.file.version = targetVersion;
manifest.file.download = getDownloadURL(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(); return cb();
} catch (err) { } catch (err) {