diff --git a/packages/wb/src/project.ts b/packages/wb/src/project.ts index 744f6cbe..aa256dbf 100644 --- a/packages/wb/src/project.ts +++ b/packages/wb/src/project.ts @@ -151,7 +151,7 @@ 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 []; + if (!fs.existsSync(packageDirPath)) return allProjects; const packageDirs = await fs.promises.readdir(packageDirPath, { withFileTypes: true }); for (const packageDir of packageDirs) {