From 15be6dd33bfab8bdfaf8c3dece435d7139c1bf6d Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 30 May 2024 07:11:18 -0700 Subject: [PATCH] fix: don't try parsing workspaces if none exist --- workspaces/config/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/config/lib/index.js b/workspaces/config/lib/index.js index 8d2749f27452a..4aa76d8e2d9a2 100644 --- a/workspaces/config/lib/index.js +++ b/workspaces/config/lib/index.js @@ -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 }