Skip to content

Commit

Permalink
Fix server channel registration
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Apr 9, 2024
1 parent 9264728 commit 8cbb7fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/addons/controls/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ import { initCreateNewStoryChannel } from './server-channel/create-new-story-cha
export const experimental_serverChannel = async (channel: Channel, options: Options) => {
initCreateNewStoryChannel(channel, options);
initFileSearchChannel(channel, options);

return channel;
};
1 change: 1 addition & 0 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"require": "./dist/measure/preview.js"
},
"./measure/manager": "./dist/measure/manager.js",
"./preset": "./dist/preset.js",
"./outline/preview": {
"types": "./dist/outline/preview.d.ts",
"import": "./dist/outline/preview.mjs",
Expand Down
4 changes: 3 additions & 1 deletion code/addons/essentials/src/preset.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// @ts-expect-error no types
import { experimental_serverChannel as experimentalServerChannelControls } from '@storybook/addon-controls/dist/preset';
import { experimental_serverChannel as experimentalServerChannelControls } from '@storybook/addon-controls/preset';

import type { Channel } from '@storybook/channels';
import type { Options } from '@storybook/types';

// eslint-disable-next-line @typescript-eslint/naming-convention
export const experimental_serverChannel = async (channel: Channel, options: Options) => {
experimentalServerChannelControls(channel, options);

return channel;
};

0 comments on commit 8cbb7fa

Please sign in to comment.