Skip to content

Commit 93cd754

Browse files
authored
fix: await tasks before continuing (#82)
1 parent c3e0deb commit 93cd754

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cli.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ async function main() {
9595
await command("git init");
9696
await command("git checkout -b main");
9797

98-
createLicense(answers.licenseName);
98+
await createLicense(answers.licenseName);
9999
console.log(`LICENSE created`);
100100

101-
createCoc(answers.cocEmail);
101+
await createCoc(answers.cocEmail);
102102
console.log(`CODE_OF_CONDUCT.md created`);
103103

104-
createContributing({ owner, repo, packageName: answers.packageName });
104+
await createContributing({ owner, repo, packageName: answers.packageName });
105105
console.log(`CONTRIBUTING.md created`);
106106

107107
await createReadme({
@@ -146,7 +146,7 @@ async function main() {
146146
await command(`git push -u origin HEAD`);
147147
await command(`git checkout -b initial-version`);
148148

149-
createReadme({
149+
await createReadme({
150150
repo,
151151
description: answers.description,
152152
});
@@ -256,7 +256,7 @@ run(script);
256256
console.log(`Your new repository is here:
257257
https://github.com/${answers.repository}
258258
259-
To change into the new directory, do
259+
To change into the new directory, do
260260
$ cd ${answers.path}`);
261261
} catch (error) {
262262
console.log(error);

0 commit comments

Comments
 (0)