refactor(cli): migrate React Scripts generator to TS

This commit is contained in:
Gaëtan Maisse 2020-05-14 22:22:16 +02:00
parent d4d61499d5
commit 97bb8fddce
No known key found for this signature in database
GPG Key ID: D934C0EF3714A8A8

View File

@ -9,8 +9,10 @@ import {
copyTemplate,
} from '../../helpers';
import { STORY_FORMAT } from '../../project_types';
import { NpmOptions } from '../../NpmOptions';
import { GeneratorOptions } from '../../GeneratorOptions';
export default async (npmOptions, { storyFormat }) => {
export default async (npmOptions: NpmOptions, { storyFormat }: GeneratorOptions) => {
const packages = [
'@storybook/react',
'@storybook/preset-create-react-app',