Skip to content

Commit dd19179

Browse files
authored
fix(@142vip/fairy-cli): 修复release命令未选中异常,终止后续流程执行 (#726)
1 parent e241115 commit dd19179

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/fairy-cli/src/commands/release.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ async function printPkgCommitLogs(pnpmFilter?: string | string[]): Promise<void>
167167
`请选择需要查看的模块:`,
168168
VipInquirer.handleSimpleSearchSource(VipMonorepo.getPkgNames(pnpmFilter)),
169169
)
170+
if (pkgName == null) {
171+
return
172+
}
170173
const commits = VipGit.getRecentCommitsByScope(pkgName)
171174

172175
if (commits.length === 0) {

0 commit comments

Comments
 (0)