Skip to content

Commit

Permalink
fix(storybook): update storybook tsconfig to only include *.storybook…
Browse files Browse the repository at this point in the history
… files (nrwl#10823)

ISSUES CLOSED: nrwl#9933
  • Loading branch information
amayer42 authored Jun 27, 2022
1 parent 9375172 commit d9bb4ac
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../src/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../src/**/*.stories.ts\\",
\\"../src/**/*.stories.js\\",
\\"../src/**/*.stories.jsx\\",
\\"../src/**/*.stories.tsx\\",
\\"../src/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Expand Down Expand Up @@ -514,7 +520,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../src/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../src/**/*.stories.ts\\",
\\"../src/**/*.stories.js\\",
\\"../src/**/*.stories.jsx\\",
\\"../src/**/*.stories.tsx\\",
\\"../src/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Expand Down Expand Up @@ -574,7 +586,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../components/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../components/**/*.stories.ts\\",
\\"../components/**/*.stories.js\\",
\\"../components/**/*.stories.jsx\\",
\\"../components/**/*.stories.tsx\\",
\\"../components/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Expand Down Expand Up @@ -627,7 +645,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../src/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../src/**/*.stories.ts\\",
\\"../src/**/*.stories.js\\",
\\"../src/**/*.stories.jsx\\",
\\"../src/**/*.stories.tsx\\",
\\"../src/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Expand Down Expand Up @@ -680,7 +704,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../src/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../src/**/*.stories.ts\\",
\\"../src/**/*.stories.js\\",
\\"../src/**/*.stories.jsx\\",
\\"../src/**/*.stories.tsx\\",
\\"../src/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Expand Down Expand Up @@ -733,7 +763,13 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and
\\"../../../node_modules/@nrwl/react/typings/image.d.ts\\"
],
\\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"],
\\"include\\": [\\"../src/**/*\\", \\"*.js\\" ]
\\"include\\": [
\\"../src/**/*.stories.ts\\",
\\"../src/**/*.stories.js\\",
\\"../src/**/*.stories.jsx\\",
\\"../src/**/*.stories.tsx\\",
\\"../src/**/*.stories.mdx\\",
\\"*.js\\"]
}
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/image.d.ts"
],<% } %>
"exclude": ["../**/*.spec.ts" <% if(uiFramework === '@storybook/react') { %>, "../**/*.spec.js", "../**/*.spec.tsx", "../**/*.spec.jsx"<% } %>],
"include": ["../<%= mainDir %>/**/*", "*.js" <% if(uiFramework === '@storybook/react-native') { %>, "*.ts", "*.tsx"<% } %>]
"include": [
"../<%= mainDir %>/**/*.stories.ts",
"../<%= mainDir %>/**/*.stories.js",
"../<%= mainDir %>/**/*.stories.jsx",
"../<%= mainDir %>/**/*.stories.tsx",
"../<%= mainDir %>/**/*.stories.mdx",
"*.js"<% if(uiFramework === '@storybook/react-native') { %>, "*.ts", "*.tsx"<% } %>]
}

0 comments on commit d9bb4ac

Please sign in to comment.