Fix formatting in bump-version
This commit is contained in:
parent
e7fc318ea5
commit
5d0ccf8e3e
1 changed files with 2 additions and 7 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue