Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore(storybook): skip empty directories before build

白熱ce029a85fcdd
diff --git a/common/storybook/.storybook/main.ts b/common/storybook/.storybook/main.ts
index 48a14e4204..72cdd53c19 100644
--- a/common/storybook/.storybook/main.ts
+++ b/common/storybook/.storybook/main.ts
@@ -39,7 +39,7 @@ const config: StorybookConfig = {
const rootDir = resolve(__dirname, rootPath);
if (existsSync(rootDir)) {
readdirSync(rootDir).forEach((pkg) => {
- const pkgDir = resolve(rootDir, pkg);
+ const pkgDir = resolve(rootDir, pkg, 'package.json');
if (existsSync(pkgDir)) {
stories.push({
directory: `${rootPath}/${pkg}/src`,