mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
⚡ Changed glob pattern to also search nodes in subfolders. (#574)
This commit is contained in:
parent
2314621ce6
commit
d79f22d0db
|
@ -192,7 +192,7 @@ class LoadNodesAndCredentialsClass {
|
|||
* @memberof N8nPackagesInformationClass
|
||||
*/
|
||||
async loadDataFromDirectory(setPackageName: string, directory: string): Promise<void> {
|
||||
const files = await glob(path.join(directory, '*\.@(node|credentials)\.js'));
|
||||
const files = await glob(path.join(directory, '**/*\.@(node|credentials)\.js'));
|
||||
|
||||
let fileName: string;
|
||||
let type: string;
|
||||
|
|
Loading…
Reference in a new issue