Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/fairy-cli/src/commands/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
dirPatterns.push(...generateDirPatterns(['.nuxt', '.output'], args.all))
}

// 删除midway构建目录,run logs
// 删除midway构建目录,run logs typings
if (args.midway) {
dirPatterns.push(...generateDirPatterns(['run', 'logs'], args.all))
dirPatterns.push(...generateDirPatterns(['run', 'logs', 'typings'], args.all))
}

// 删除turbo缓存目录
Expand All @@ -61,7 +61,7 @@
}

if (dirPatterns.length === 0) {
console.log('删除规则为空,不做删除操作处理,请传入有效参数!!')

Check warning on line 64 in packages/fairy-cli/src/commands/clean.ts

View workflow job for this annotation

GitHub Actions / 基础编译构建

Unexpected console statement
process.exit(1)
}

Expand All @@ -79,7 +79,7 @@
}

// 需要删除的目录
console.log('删除规则:', dirPatterns)

Check warning on line 82 in packages/fairy-cli/src/commands/clean.ts

View workflow job for this annotation

GitHub Actions / 基础编译构建

Unexpected console statement

// 删除
const deletedDirs = await deleteAsync(dirPatterns, {
Expand All @@ -87,7 +87,7 @@
force: args.force,
dot: true,
})
console.log(deletedDirs)

Check warning on line 90 in packages/fairy-cli/src/commands/clean.ts

View workflow job for this annotation

GitHub Actions / 基础编译构建

Unexpected console statement
}

function generateDirPatterns(dirName: string | string[], delAll?: boolean) {
Expand Down
Loading