Allow user to manage project version string

This commit is contained in:
Nick O'Leary
2020-09-28 11:30:46 +01:00
parent 69d60ffb24
commit c5bdd3d056
4 changed files with 36 additions and 10 deletions

View File

@@ -349,6 +349,10 @@ Project.prototype.update = function (user, data) {
savePackage = true;
this.package.description = data.summary;
}
if (data.hasOwnProperty('version')) {
savePackage = true;
this.package.version = data.version;
}
if (data.hasOwnProperty('git')) {
if (data.git.hasOwnProperty('user')) {
@@ -829,6 +833,7 @@ Project.prototype.export = function () {
return {
name: this.name,
summary: this.package.description,
version: this.package.version,
description: this.description,
dependencies: this.package.dependencies||{},
empty: this.empty,