Skip to content

Commit

Permalink
fix: path for bin files (#1107)
Browse files Browse the repository at this point in the history
* fix: addressing

* fix: path

* chore: remove comments
  • Loading branch information
Yoseph Maguire authored Jun 5, 2020
1 parent 2980e96 commit 43cc1d1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
*
* See LICENSE for more information
*/

var path = require('path')
var commist = require('commist')()
var helpMe = require('help-me')()
var helpMe = require('help-me')({
dir: path.join(path.dirname(require.main.filename), '/../doc'),
ext: '.txt'
})

commist.register('publish', require('./bin/pub'))
commist.register('subscribe', require('./bin/sub'))
commist.register('publish', require('./pub'))
commist.register('subscribe', require('./sub'))
commist.register('version', function () {
console.log('MQTT.js version:', require('./package.json').version)
console.log('MQTT.js version:', require('./../package.json').version)
})
commist.register('help', helpMe.toStdout)

Expand Down

0 comments on commit 43cc1d1

Please sign in to comment.