Skip to content

Commit

Permalink
fix: correctly read package.json name
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Dec 18, 2018
1 parent b0f620a commit 569a593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function main(): Promise<void> {
let packageName: string | undefined
let description: string | undefined
try {
;({ packageName, description } = JSON.parse(await readFile('package.json', 'utf-8')))
;({ name: packageName, description } = JSON.parse(await readFile('package.json', 'utf-8')))
} catch (err) {
if (err.code !== 'ENOENT') {
throw err
Expand Down

0 comments on commit 569a593

Please sign in to comment.