Skip to content

Commit a37de45

Browse files
committed
fix: Add manager type decls
1 parent e443fd0 commit a37de45

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tsup.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ export default defineConfig(async () => {
3939
/*
4040
manager entries are entries meant to be loaded into the manager UI
4141
they'll have manager-specific packages externalized and they won't be usable in node
42-
they won't have types generated for them as they're usually loaded automatically by Storybook
42+
the manager entry point doesn't need types generated, but manager helpers do as they are imported by end users
4343
*/
4444
if (managerEntries.length) {
4545
configs.push({
4646
...commonConfig,
4747
entry: managerEntries,
4848
platform: 'browser',
4949
target: 'esnext', // we can use esnext for manager entries since Storybook will bundle the addon's manager entries again anyway
50+
dts: true,
5051
});
5152
}
5253

0 commit comments

Comments
 (0)