Skip to content

Commit

Permalink
Merge branch 'master' of github.com:storybookjs/storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Feb 3, 2020
2 parents a2a6c13 + d4e305f commit e1677f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/storyshots/storyshots-core/src/frameworks/configure.ts
Expand Up @@ -45,7 +45,11 @@ const getPreviewFile = (configDir: string): string | false => {

const getMainFile = (configDir: string): string | false => {
const main = path.join(configDir, 'main.js');
const mainTS = path.join(configDir, 'main.ts');

if (isFile(mainTS)) {
return mainTS;
}
if (isFile(main)) {
return main;
}
Expand Down

0 comments on commit e1677f0

Please sign in to comment.