Skip to content

Commit

Permalink
fix(eject): undefined srcDir issue
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 2, 2020
1 parent f64647a commit 039c3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function nuxtStorybookOptions (options) {
srcDir = path.resolve(options.rootDir, srcDir)
}

const storiesDir = path.resolve(options.srcDir, 'components')
const storiesDir = path.resolve(srcDir, 'components')
if (fsExtra.existsSync(storiesDir)) {
nuxtStorybookConfig.stories.unshift('~/components/**/*.stories.@(ts|js)')
}
Expand Down

0 comments on commit 039c3de

Please sign in to comment.