Skip to content

Commit

Permalink
⚡ Changed glob pattern to also search nodes in subfolders. (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
allanclempe authored May 22, 2020
1 parent 2314621 commit d79f22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/LoadNodesAndCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d79f22d

Please sign in to comment.