Skip to content

Commit

Permalink
refactor(cli): use storyformat in aurelia generator
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed May 17, 2020
1 parent bc237c7 commit cb149f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cli/src/generators/AURELIA/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from '../../helpers';
import { NpmOptions } from '../../NpmOptions';
import { GeneratorOptions } from '../../GeneratorOptions';
import { StoryFormat } from '../../project_types';

function addStorybookExcludeGlobToTsConfig() {
const tsConfigJson = readFileAsJson('tsconfig.json', true);
Expand All @@ -27,7 +28,10 @@ function addStorybookExcludeGlobToTsConfig() {
writeFileAsJson('tsconfig.json', tsConfigJson);
}

export default async (npmOptions: NpmOptions, { storyFormat = 'csf' }: GeneratorOptions) => {
export default async (
npmOptions: NpmOptions,
{ storyFormat = StoryFormat.CSF }: GeneratorOptions
) => {
copyTemplate(__dirname, storyFormat);
const packages = [
'@storybook/aurelia',
Expand Down

0 comments on commit cb149f6

Please sign in to comment.