mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Allow user to manage project version string
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user