Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: ensure name is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 21, 2018
1 parent 6629c32 commit c34b3ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class Plugin implements IPlugin {
this._debug('reading %s plugin %s', this.type, root)
this.pjson = await loadJSON(path.join(root, 'package.json')) as any
this.name = this.pjson.name
if (!this.name) throw new Error(`no name in ${path.join(root, 'package.json')}`)
this._debug = Debug(this.name)
this.version = this.pjson.version
if (this.pjson.oclif) {
Expand Down

0 comments on commit c34b3ac

Please sign in to comment.