diff --git a/src/cli.ts b/src/cli.ts index 3ef291e5..e61a5e04 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import minimist, { ParsedArgs } from 'minimist'; -import create from './create'; +import { create } from './create'; export type Argvs = { appName?: string; diff --git a/src/create.ts b/src/create.ts index fa207deb..4a3e64f2 100644 --- a/src/create.ts +++ b/src/create.ts @@ -6,7 +6,7 @@ import { Argvs, exampleHelp } from './cli'; export type CreateOptions = {} & Argvs; -export default async (argv: CreateOptions) => { +export async function create(argv: CreateOptions) { const spinner = ora('Downloading Example.'); try { if (!argv.appName || !/^[A-Za-z0-9_\-\.]{1,}$/.test(argv.appName)) { @@ -95,4 +95,4 @@ export default async (argv: CreateOptions) => { } process.exit(1); } -}; +}