Changed glob pattern to also search nodes in subfolders. (#574)

This commit is contained in:
Allan Clempe 2020-05-23 09:09:05 +10:00 committed by GitHub
parent 2314621ce6
commit d79f22d0db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;