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

Commit

Permalink
fix: set bin for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 14, 2018
1 parent 2cdba83 commit c8d0f11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ class App extends Generator {
this.pjson.bin = this.pjson.bin || {}
this.pjson.bin[this.pjson.oclif.bin] = './bin/run'
this.pjson.files.push('/bin')
} else if (this.type === 'plugin') {
this.pjson.oclif.bin = 'oclif-example'
}
if (this.type !== 'plugin') {
this.pjson.main = defaults.main || (this.ts ? 'lib/index.js' : 'src/index.js')
Expand Down

0 comments on commit c8d0f11

Please sign in to comment.