fix: set bin for plugins
MODIFY
src/generators/app.ts
src/generators/app.ts
@@ -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')

fix: set bin for plugins