Skip to content

Commit

Permalink
fix: 调整执行顺序,最后执行git操作
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassama committed Dec 15, 2021
1 parent 894d314 commit 29b56ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/init/ts-package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function init() {
return basicAnswers
}).then((basicAnswers: BasicAnswersType)=>{
template.create(basicAnswers)
git.create(basicAnswers)
return basicAnswers
}).then(async (basicAnswers: BasicAnswersType)=>{
await git.create(basicAnswers)
});
}

Expand Down

0 comments on commit 29b56ac

Please sign in to comment.