Skip to content

Commit df60efd

Browse files
validate doc check for storybook version 8
1 parent a8615ee commit df60efd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

commands/utils/story.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// Returns true or false if the story should be skipped based on include and exclude config
22
function skipStory(story, config) {
3-
// skip story if it's docs
4-
if (story.parameters && story.parameters.docsOnly) {
3+
// skip story if it's docs for version 7
4+
if (story.parameters && story.parameters.docsOnly ) {
5+
return true;
6+
}
7+
8+
if(story.type && story.type === 'docs'){
59
return true;
610
}
711

0 commit comments

Comments
 (0)