Skip to content

Commit

Permalink
fix: output success message
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 29, 2017
1 parent 9ad8954 commit 01b1dae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ module.exports = async function init(basedir = process.cwd()) {
packageInfo[prop] = { ...originalPackage[prop], ...packageInfo[prop] }
})

await writeFile(packageFile, JSON.stringify(packageInfo, null, 2))
await writeFile(packageFile, `${JSON.stringify(packageInfo, null, 2)}\n`)

process.stdout.write(`${packageFile} was updated.\n`)
}

0 comments on commit 01b1dae

Please sign in to comment.