Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Exclude storybook for lib, remove dangling mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 15, 2023
1 parent 6c7daf1 commit 0b09e01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
14 changes: 13 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import type { StorybookConfig } from '@storybook/react-vite';
import globby from 'globby';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
// For some reason the property does not allow negation
// https://github.com/storybookjs/storybook/issues/11181#issuecomment-1535288804
stories: globby.sync(
[
'../src/**/*.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)',
'!../**/node_modules/**/*',
'!../**/lib/**/*',
],
{ cwd: './.storybook' },
),
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
Expand Down
9 changes: 0 additions & 9 deletions src/components/Select/Select.mdx

This file was deleted.

0 comments on commit 0b09e01

Please sign in to comment.