Skip to content

Commit

Permalink
fix(compile): remove unnecessary camelize method
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Aug 14, 2021
1 parent b200fed commit e9fd509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/varlet-cli/src/compiler/compileTypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ensureDir, readdir, writeFile } from 'fs-extra'
import { TYPES_DIR } from '../shared/constant'
import { bigCamelize, camelize } from '../shared/fsUtils'
import { bigCamelize } from '../shared/fsUtils'
import { resolve } from 'path'

export async function compileTypes() {
Expand All @@ -15,7 +15,7 @@ export async function compileTypes() {
ignoreEntryDir.forEach((filename) => {
const componentName = bigCamelize(filename.slice(0, filename.indexOf('.d.ts')))

exports.push(`export * from './${camelize(componentName)}'`)
exports.push(`export * from './${componentName}'`)
})

const template = `\
Expand Down

0 comments on commit e9fd509

Please sign in to comment.