Skip to content

Commit

Permalink
fix: Fix export function errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 19, 2021
1 parent 53213a1 commit 903d7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -95,4 +95,4 @@ export default async (argv: CreateOptions) => {
}
process.exit(1);
}
};
}

0 comments on commit 903d7c1

Please sign in to comment.