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

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

View File

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