Skip to content

Commit

Permalink
fix: don't try parsing workspaces if none exist
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed May 30, 2024
1 parent d185c9b commit 15be6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ class Config {
// then we need to see if `p` is a workspace root by reading its package.json
// however, if reading it fails then we should just move on
const { content: pkg } = await pkgJson.normalize(p).catch(() => ({ content: {} }))
if (!pkg) {
if (!pkg?.workspaces) {
continue
}

Expand Down

0 comments on commit 15be6dd

Please sign in to comment.