Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix(cli): remove lib dir before compile
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Mar 3, 2022
1 parent 4d496a0 commit b2017db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/varlet-vue2-cli/src/commands/compile.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ora from 'ora'
import logger from '../shared/logger'
import { remove } from 'fs-extra'
import { ES_DIR, HL_DIR, UMD_DIR } from '../shared/constant'
import { ES_DIR, LIB_DIR, HL_DIR, UMD_DIR } from '../shared/constant'
import { compileTypes } from '../compiler/compileTypes'
import { compileTemplateHighlight } from '../compiler/compileTemplateHighlight'
import { compileModule } from '../compiler/compileModule'

export function removeDir() {
return Promise.all([remove(ES_DIR), remove(HL_DIR), remove(UMD_DIR)])
return Promise.all([remove(ES_DIR), remove(LIB_DIR), remove(HL_DIR), remove(UMD_DIR)])
}

export async function runTask(taskName: string, task: () => any) {
Expand Down

0 comments on commit b2017db

Please sign in to comment.