diff --git a/packages/pack/src/Progress.ts b/packages/pack/src/Progress.ts index 4a3a739d..17bb382c 100644 --- a/packages/pack/src/Progress.ts +++ b/packages/pack/src/Progress.ts @@ -4,7 +4,7 @@ type Options = { steps: string[] } -class Pgoress { +class Progress { private spinner: Spinner.Ora private steps: string[] private hrstart: [number, number] = [0, 0] @@ -30,6 +30,6 @@ class Pgoress { } } -export function createPgoress(options: Options): Pgoress { - return new Pgoress(options) +export function createProgress(options: Options): Progress { + return new Progress(options) } diff --git a/packages/pack/src/build.ts b/packages/pack/src/build.ts index a7198d78..57df4400 100644 --- a/packages/pack/src/build.ts +++ b/packages/pack/src/build.ts @@ -2,7 +2,7 @@ import { resolve } from 'path' import { Config, HookOptions } from './interfaces' import { wrapToPromise } from './wrapToPromise' -import { createPgoress } from './Progress' +import { createProgress } from './Progress' const steps = ['onStart', 'onBeforeRun', 'onRun', 'onAfterRun', 'onFinish'] @@ -13,7 +13,7 @@ export async function tryBuild(config: Config): Promise { output: resolve(config.context, config.output), } - const progress = createPgoress({ steps }) + const progress = createProgress({ steps }) // TODO: Catch errors from plugins and stop progress with message. progress.start() diff --git a/packages/pack/src/debug.ts b/packages/pack/src/debug.ts index 24cdc451..544406f7 100644 --- a/packages/pack/src/debug.ts +++ b/packages/pack/src/debug.ts @@ -1,3 +1,3 @@ -import createDeubg from 'debug' +import createDebug from 'debug' -export const mark = createDeubg('@bem-react/pack') +export const mark = createDebug('@bem-react/pack')