Skip to content

Commit a196f8a

Browse files
Copilothotlong
andcommitted
fix: exclude stories from type-check in plugin-gantt and plugin-calendar
Add **/*.stories.tsx to the exclude array in both packages' tsconfig.json to fix type-check failures caused by unresolvable @storybook-config/datasource alias (which is only available in Storybook's Vite config at runtime). Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 074f809 commit a196f8a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugin-calendar/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"skipLibCheck": true
1515
},
1616
"include": ["src"],
17-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
17+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]
1818
}

packages/plugin-gantt/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"skipLibCheck": true
1515
},
1616
"include": ["src"],
17-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
17+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]
1818
}

0 commit comments

Comments
 (0)