make sure to await writeFileTree

This commit is contained in:
Evan You
2018-01-05 17:56:59 -05:00
parent c47eb7b76a
commit 267755dae5

View File

@@ -83,7 +83,7 @@ module.exports = class Creator {
// write base package.json to disk
clearConsole()
logWithSpinner('✨', `Creating project in ${chalk.yellow(context)}.`)
writeFileTree(context, {
await writeFileTree(context, {
'package.json': JSON.stringify({
name,
version: '0.1.0',