mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
much simpler to always add start
whether node-red is s deep or not… as if not it would need to be there anyway….
This commit is contained in:
parent
02765f8aad
commit
1906818c87
@ -276,15 +276,12 @@ Project.prototype.update = function (user, data) {
|
||||
saveREADME = true;
|
||||
this.description = data.description;
|
||||
}
|
||||
|
||||
if (data.hasOwnProperty('dependencies')) {
|
||||
savePackage = true;
|
||||
this.package.dependencies = data.dependencies;
|
||||
if (this.package.dependencies.hasOwnProperty("node-red")) {
|
||||
this.package.scripts = {"start":"node-red -u . " + this.package['node-red'].settings.flowFile};
|
||||
} else {
|
||||
delete(this.package.scripts.start);
|
||||
}
|
||||
}
|
||||
|
||||
if (data.hasOwnProperty('summary')) {
|
||||
savePackage = true;
|
||||
this.package.description = data.summary;
|
||||
@ -337,11 +334,7 @@ Project.prototype.update = function (user, data) {
|
||||
if (data.files.hasOwnProperty('flow') && this.package['node-red'].settings.flowFile !== data.files.flow) {
|
||||
this.paths.flowFile = data.files.flow;
|
||||
this.package['node-red'].settings.flowFile = data.files.flow;
|
||||
if (this.package.dependencies.hasOwnProperty("node-red")) {
|
||||
this.package.scripts = {"start":"node-red -u . " + data.files.flow};
|
||||
} else {
|
||||
delete(this.package.scripts.start);
|
||||
}
|
||||
savePackage = true;
|
||||
flowFilesChanged = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user