mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ignore node_modules dir when scanning for nodes
This commit is contained in:
parent
2028880b48
commit
48c4786d66
@ -230,8 +230,8 @@ module.exports.load = function(settings) {
|
||||
}
|
||||
}
|
||||
} else if (stats.isDirectory()) {
|
||||
// Ignore /.dirs/ and /lib/
|
||||
if (!/^(\..*|lib|icons)$/.test(fn)) {
|
||||
// Ignore /.dirs/, /lib/ /node_modules/
|
||||
if (!/^(\..*|lib|icons|node_modules)$/.test(fn)) {
|
||||
loadNodes(path.join(dir,fn));
|
||||
} else if (fn === "icons") {
|
||||
events.emit("node-icon-dir",path.join(dir,fn));
|
||||
|
Loading…
Reference in New Issue
Block a user