Skip to content

Commit

Permalink
Merge pull request #2639 from storybooks/storyshots-ts-stories-compat…
Browse files Browse the repository at this point in the history
…ibility

Add .ts compatibility to storyshots
  • Loading branch information
igor-dv authored and shilman committed Jan 7, 2018
1 parent 5d58157 commit ac40b5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/storyshots/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export function getPossibleStoriesFiles(storyshotFile) {
return [
path.format({ dir: path.dirname(dir), name, ext: '.js' }),
path.format({ dir: path.dirname(dir), name, ext: '.jsx' }),
path.format({ dir: path.dirname(dir), name, ext: '.ts' }),
path.format({ dir: path.dirname(dir), name, ext: '.tsx' }),
];
}

Expand Down

0 comments on commit ac40b5d

Please sign in to comment.