Skip to content

Commit

Permalink
chore(pack): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Stenin authored and yarastqt committed Oct 8, 2020
1 parent 2e99c56 commit 2d63c12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/pack/src/Progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
}
4 changes: 2 additions & 2 deletions packages/pack/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand All @@ -13,7 +13,7 @@ export async function tryBuild(config: Config): Promise<void> {
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()
Expand Down
4 changes: 2 additions & 2 deletions packages/pack/src/debug.ts
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 2d63c12

Please sign in to comment.