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

Add 'private' property to userDir generated package.json

This stops the warnings from npm about missing repo and license fields.
As there's no expectation for a user to publish their userDir to npm, then
setting private is entirely appropriate.
This commit is contained in:
Nick O'Leary 2018-05-22 11:41:22 +01:00
parent 184b1b018c
commit 36105412b1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -72,7 +72,8 @@ var localfilesystem = {
var defaultPackage = {
"name": "node-red-project",
"description": "A Node-RED Project",
"version": "0.0.1"
"version": "0.0.1",
"private": true
};
return util.writeFile(packageFile,JSON.stringify(defaultPackage,"",4));
}