From 2d63c12d5d275018db0a778f80ba467b2669b97f Mon Sep 17 00:00:00 2001 From: Nikita Stenin Date: Wed, 7 Oct 2020 23:34:03 +0300 Subject: [PATCH] chore(pack): fix typos --- packages/pack/src/Progress.ts | 6 +++--- packages/pack/src/build.ts | 4 ++-- packages/pack/src/debug.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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')