1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Rename package var

This commit is contained in:
Nick O'Leary 2023-01-23 17:50:50 +00:00
parent 8d240ca797
commit 0346294c59
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -18,7 +18,7 @@ var i18n = require("@node-red/util").i18n;
module.exports = { module.exports = {
"package.json": function(project) { "package.json": function(project) {
var package = { var packageDetails = {
"name": project.name, "name": project.name,
"description": project.summary||i18n._("storage.localfilesystem.projects.summary"), "description": project.summary||i18n._("storage.localfilesystem.projects.summary"),
"version": "0.0.1", "version": "0.0.1",
@ -30,11 +30,11 @@ module.exports = {
}; };
if (project.files) { if (project.files) {
if (project.files.flow) { if (project.files.flow) {
package['node-red'].settings.flowFile = project.files.flow; packageDetails['node-red'].settings.flowFile = project.files.flow;
package['node-red'].settings.credentialsFile = project.files.credentials; packageDetails['node-red'].settings.credentialsFile = project.files.credentials;
} }
} }
return JSON.stringify(package,"",4); return JSON.stringify(packageDetails,"",4);
}, },
"README.md": function(project) { "README.md": function(project) {
var content = project.name+"\n"+("=".repeat(project.name.length))+"\n\n"; var content = project.name+"\n"+("=".repeat(project.name.length))+"\n\n";