Skip to content

Commit

Permalink
Remove extra work on cli functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sromexs committed Mar 7, 2021
1 parent e861ada commit 3b10cca
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/next/bin/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ import opentelemetryApi from '@opentelemetry/api'
const defaultCommand = 'dev'
export type cliCommand = (argv?: string[]) => void
const commands: { [command: string]: () => Promise<cliCommand> } = {
build: async () => await import('../cli/next-build').then((i) => i.nextBuild),
start: async () => await import('../cli/next-start').then((i) => i.nextStart),
export: async () =>
await import('../cli/next-export').then((i) => i.nextExport),
dev: async () => await import('../cli/next-dev').then((i) => i.nextDev),
telemetry: async () =>
await import('../cli/next-telemetry').then((i) => i.nextTelemetry),
build: () => import('../cli/next-build').then((i) => i.nextBuild),
start: () => import('../cli/next-start').then((i) => i.nextStart),
export: () => import('../cli/next-export').then((i) => i.nextExport),
dev: () => import('../cli/next-dev').then((i) => i.nextDev),
telemetry: () => import('../cli/next-telemetry').then((i) => i.nextTelemetry),
}

const args = arg(
Expand Down

0 comments on commit 3b10cca

Please sign in to comment.