diff --git a/src/lib/registry/helpers/find-packages-globs.ts b/src/lib/registry/helpers/find-packages-globs.ts index 24263d7..4fe27c5 100644 --- a/src/lib/registry/helpers/find-packages-globs.ts +++ b/src/lib/registry/helpers/find-packages-globs.ts @@ -30,6 +30,11 @@ export function findPackagesGlobs(workspaceRootDir: string) { ); } + assert( + workspaceConfig.packages, + "packages property must be defined in pnpm-workspace.yaml" + ); + const { packages: globs } = workspaceConfig; log.debug("Detected pnpm packages globs:", inspectValue(globs));