Skip to content

Commit

Permalink
fix(cli-plugin-scaffold-extensions): ignore node_modules when detecti…
Browse files Browse the repository at this point in the history
…ng workspaces
  • Loading branch information
Pavel910 committed Jul 4, 2024
1 parent dd472b4 commit 3338926
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export type ExtensionWorkspace = {
};

export const getExtensionsFromFilesystem = (): ExtensionWorkspace[] => {
const workspaces = glob.sync(`extensions/**/package.json`);
const workspaces = glob.sync(`extensions/**/package.json`, {
ignore: ["**/node_modules/**"]
});
return workspaces
.map(pkg => ({
path: path.dirname(pkg),
Expand Down

0 comments on commit 3338926

Please sign in to comment.