Merge pull request #3149 from hardillb/coreNodesDir-false

Allow coreNodesDir to be set to false
This commit is contained in:
Nick O'Leary 2021-09-24 22:20:11 +01:00 committed by GitHub
commit e638b55b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ module.exports = {
checkVersion(userSettings);
}
if (!userSettings.coreNodesDir) {
if (!userSettings.hasOwnProperty("coreNodesDir")) {
userSettings.coreNodesDir = path.dirname(require.resolve("@node-red/nodes"))
}
redUtil.init(userSettings);