From 34051013c8432b6a9b922fea7ec2ce507c028451 Mon Sep 17 00:00:00 2001 From: Elvi Shu Date: Mon, 24 Jun 2024 16:15:15 +1000 Subject: [PATCH] Revert "[HOTFIX]Add npm command to run a single story in Storybook." This reverts commit dd6a1a673590c8596466d495d8e6d5d488815393. --- .storybook/main.js | 6 ++---- package.json | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index 6baccadd..86fd23ea 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -4,10 +4,8 @@ const config = { "../src/stories/Introduction.mdx", // Include all stories found under the src/components directory ( For example: alert/alert.stories.js ) // Exlude any stories starting with an underscore ( For example: _exludeme.stories.js ) - // "../src/**/!(*_)*.mdx", - // "../src/**/!(*_)*.stories.js", - process.env.STORYBOOK_SINGLE ? process.env.STORYBOOK_SINGLE : "../src/**/!(*_)*.mdx", - process.env.STORYBOOK_SINGLE ? process.env.STORYBOOK_SINGLE : "../src/**/!(*_)*.stories.js", + "../src/**/!(*_)*.mdx", + "../src/**/!(*_)*.stories.js", ], staticDirs: [ { from: '../dist', to: '/assets' }, diff --git a/package.json b/package.json index 07ff4293..3a5c0afc 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,6 @@ "serve": "live-server dist", "dev-storybook": "npm-run-all --parallel watch storybook", "storybook": "storybook dev -p 6006", - "storybook-single": "STORYBOOK_SINGLE=../src/components/bs5/button/button.stories.js npm run storybook", - "storybook-single-watch": "STORYBOOK_SINGLE=../src/components/bs5/button/button.stories.js npm-run-all --parallel watch storybook", "build-storybook": "storybook build --webpack-stats-json ", "build-storybook:serve": "live-server storybook-static" },