Skip to content

Commit ddb0ea1

Browse files
committed
fix: 修复原始创建不中止问题
1 parent 3ddd7c6 commit ddb0ea1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/lc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ export const callModeAction = {
8585
});
8686
})
8787
},
88-
'identity':(id)=> createQuestionById(id, baseDir),
88+
'identity':async(id)=> {
89+
await createQuestionById(id, baseDir)
90+
process.exit(0)
91+
92+
},
8993
}
9094
// 获取模式和参数
9195
const mode = referMode(cmdArgs, cmdOpts)

0 commit comments

Comments
 (0)