Skip to content

Commit 15be6dd

Browse files
committedMay 30, 2024··
fix: don't try parsing workspaces if none exist
1 parent d185c9b commit 15be6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎workspaces/config/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ class Config {
674674
// then we need to see if `p` is a workspace root by reading its package.json
675675
// however, if reading it fails then we should just move on
676676
const { content: pkg } = await pkgJson.normalize(p).catch(() => ({ content: {} }))
677-
if (!pkg) {
677+
if (!pkg?.workspaces) {
678678
continue
679679
}
680680

0 commit comments

Comments
 (0)
Please sign in to comment.