Skip to content
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
10 changes: 9 additions & 1 deletion src/lib/registry/helpers/find-packages-globs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@ export function findPackagesGlobs(workspaceRootDir: string) {

switch (packageManager.name) {
case "pnpm": {
const { packages: globs } = readTypedYamlSync<{ packages: string[] }>(
const workspaceConfig = readTypedYamlSync<{ packages: string[] }>(
path.join(workspaceRootDir, "pnpm-workspace.yaml")
);

if (!workspaceConfig) {
throw new Error(
"pnpm-workspace.yaml file is empty. Please specify packages configuration."
);
}

const { packages: globs } = workspaceConfig;

log.debug("Detected pnpm packages globs:", inspectValue(globs));
return globs;
}
Expand Down