From b1fd90e30a11d46930732b40f0f4e66fb6aa35f5 Mon Sep 17 00:00:00 2001 From: Daniel Oakman <141111365+danoaky-tiny@users.noreply.github.com> Date: Wed, 12 Jun 2024 05:29:30 +1000 Subject: [PATCH] INT-3307: Renamed storybook config files to typescript --- .storybook/main.js | 24 ------------------------ .storybook/main.ts | 18 ++++++++++++++++++ .storybook/{preview.js => preview.ts} | 0 3 files changed, 18 insertions(+), 24 deletions(-) delete mode 100644 .storybook/main.js create mode 100644 .storybook/main.ts rename .storybook/{preview.js => preview.ts} (100%) diff --git a/.storybook/main.js b/.storybook/main.js deleted file mode 100644 index eaef757..0000000 --- a/.storybook/main.js +++ /dev/null @@ -1,24 +0,0 @@ -/** @typedef {import('storybook').config} */ -module.exports = { - core: { - disableTelemetry: true, - }, - stories: [ - '../src/**/*.stories.mdx', - '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)' - ], - framework: { - name: "@storybook/svelte-vite", - options: {}, - }, - addons: [ - '@storybook/addon-essentials', - '@storybook/addon-svelte-csf', - ], - docs: { - autodocs: 'tag' - }, - svelteOptions: { - 'preprocess': require('svelte-preprocess')() - } -} \ No newline at end of file diff --git a/.storybook/main.ts b/.storybook/main.ts new file mode 100644 index 0000000..d9d08bb --- /dev/null +++ b/.storybook/main.ts @@ -0,0 +1,18 @@ +import type { StorybookConfig } from '@storybook/svelte-vite'; + +const config: StorybookConfig = { + core: { + disableTelemetry: true, + }, + stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)'], + framework: { + name: '@storybook/svelte-vite', + options: {}, + }, + addons: ['@storybook/addon-essentials', '@storybook/addon-svelte-csf'], + docs: { + autodocs: 'tag', + }, +}; + +export default config; diff --git a/.storybook/preview.js b/.storybook/preview.ts similarity index 100% rename from .storybook/preview.js rename to .storybook/preview.ts