Skip to content

Commit

Permalink
fix: typo in normalizeComponentInfo method name (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyYolkin committed Aug 26, 2023
1 parent 49f8527 commit b5d7248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { UpdatePayload, ViteDevServer } from 'vite'
import { slash, throttle, toArray } from '@antfu/utils'
import type { ComponentInfo, Options, ResolvedOptions, Transformer } from '../types'
import { DIRECTIVE_IMPORT_PREFIX } from './constants'
import { getNameFromFilePath, matchGlobs, normalizeComponetInfo, parseId, pascalCase, resolveAlias } from './utils'
import { getNameFromFilePath, matchGlobs, normalizeComponentInfo, parseId, pascalCase, resolveAlias } from './utils'
import { resolveOptions } from './options'
import { searchComponents } from './fs/glob'
import { writeDeclaration } from './declaration'
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Context {
else {
info = {
as: name,
...normalizeComponetInfo(result),
...normalizeComponentInfo(result),
}
}
if (type === 'component')
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function stringifyImport(info: ImportInfo | string) {
return `import ${info.as} from '${info.from}'`
}

export function normalizeComponetInfo(info: ImportInfo | ImportInfoLegacy | ComponentInfo): ComponentInfo {
export function normalizeComponentInfo(info: ImportInfo | ImportInfoLegacy | ComponentInfo): ComponentInfo {
if ('path' in info) {
return {
from: info.path,
Expand Down

0 comments on commit b5d7248

Please sign in to comment.