Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build-tools): Load workspaceGlobs from pnpm properly #13083

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build-tools/packages/build-tools/src/common/monoRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ export class MonoRepo {
logger.verbose(`${kind}: Loading packages from ${lernaPath}`);
pkgs = lerna.packages;
}
this.workspaceGlobs = pkgs;

for (const dir of pkgs as string[]) {
// TODO: other glob pattern?
const loadDir = dir.endsWith("/**") ? dir.substr(0, dir.length - 3) : dir;
this.packages.push(
...Packages.loadDir(path.join(this.repoPath, loadDir), kind, ignoredDirs, this),
);
}
this.workspaceGlobs = lerna.packages;
return;
}

Expand Down