From c33337d50c365a708a67b62472a7b0db7b3e3245 Mon Sep 17 00:00:00 2001 From: Sachin Thakur Date: Sun, 1 Mar 2020 11:22:15 +0530 Subject: [PATCH] Support Both js and jsx or ts and tsx Updated Regex to accommodate both Js and JSX or ts and TSX. Issue: What I did Update default template generation in storybook cli to add jsx/ts/tsx file. --- lib/cli/src/generators/REACT/template-csf/.storybook/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/src/generators/REACT/template-csf/.storybook/main.js b/lib/cli/src/generators/REACT/template-csf/.storybook/main.js index 3036098563cc..11692a0e7725 100644 --- a/lib/cli/src/generators/REACT/template-csf/.storybook/main.js +++ b/lib/cli/src/generators/REACT/template-csf/.storybook/main.js @@ -1,4 +1,4 @@ module.exports = { - stories: ['../stories/**/*.stories.js'], + stories: ['../stories/**/*.stories.(ts|tsx|js|jsx)'], addons: ['@storybook/addon-actions', '@storybook/addon-links'], };