Skip to content

Commit

Permalink
Update configure.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 31, 2021
1 parent 892add1 commit 3c04dc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cli/src/generators/configure.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fse from 'fs-extra';
import fs from 'fs';
import dedent from 'ts-dedent';
import { SupportedFrameworks } from '../project_types';

Expand Down Expand Up @@ -62,7 +61,7 @@ function configurePreview(framework: SupportedFrameworks, commonJs: boolean) {
const previewPath = `./.storybook/preview.${commonJs ? 'cjs' : 'js'}`;

// If the framework template included a preview then we have nothing to do
if (fs.existsSync(previewPath)) {
if (fse.existsSync(previewPath)) {
return;
}

Expand Down

0 comments on commit 3c04dc6

Please sign in to comment.