Skip to content

Commit

Permalink
chore: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Nov 27, 2024
1 parent c103596 commit e8cd3bb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions packages/gazzodown/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down Expand Up @@ -30,8 +30,10 @@ export default {
},

docs: {},
} satisfies StorybookConfig;
};

function getAbsolutePath(value: any): string {
return dirname(require.resolve(join(value, 'package.json')));
}

export default config;
6 changes: 4 additions & 2 deletions packages/ui-client/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down Expand Up @@ -30,8 +30,10 @@ export default {

return config;
},
} satisfies StorybookConfig;
};

function getAbsolutePath(value: any): string {
return dirname(require.resolve(join(value, 'package.json')));
}

export default config;
6 changes: 4 additions & 2 deletions packages/ui-composer/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down Expand Up @@ -30,8 +30,10 @@ export default {

return config;
},
} satisfies StorybookConfig;
};

function getAbsolutePath(value: any): string {
return dirname(require.resolve(join(value, 'package.json')));
}

export default config;
6 changes: 4 additions & 2 deletions packages/ui-video-conf/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down Expand Up @@ -31,8 +31,10 @@ export default {

return config;
},
} satisfies StorybookConfig;
};

function getAbsolutePath(value: any): string {
return dirname(require.resolve(join(value, 'package.json')));
}

export default config;
6 changes: 4 additions & 2 deletions packages/ui-voip/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down Expand Up @@ -30,8 +30,10 @@ export default {

return config;
},
} satisfies StorybookConfig;
};

function getAbsolutePath(value: any): string {
return dirname(require.resolve(join(value, 'package.json')));
}

export default config;

0 comments on commit e8cd3bb

Please sign in to comment.