From 8602e461cd8ba85853271a2fab03ed4a828bc3e3 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Mon, 30 Oct 2023 20:06:17 +0900 Subject: [PATCH] . --- packages/wb/src/project.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/wb/src/project.ts b/packages/wb/src/project.ts index 2e969726..b789dd18 100644 --- a/packages/wb/src/project.ts +++ b/packages/wb/src/project.ts @@ -205,6 +205,8 @@ export function findRootAndSelfProjects( async function getAllProjects(argv: EnvReaderOptions, rootProject: Project): Promise { const allProjects = [rootProject]; const packageDirPath = path.join(rootProject.dirPath, 'packages'); + if (!fs.existsSync(packageDirPath)) return []; + const packageDirs = await fs.promises.readdir(packageDirPath, { withFileTypes: true }); for (const packageDir of packageDirs) { if (!packageDir.isDirectory()) continue;