0.0.7 Fixed cli launch problem for global npm install
parent
98d6365b61
commit
6da55d924c
|
@ -0,0 +1,3 @@
|
|||
#! /usr/bin/env node
|
||||
require = require('esm')(module)
|
||||
require('./sync.js') // iife
|
|
@ -1,3 +0,0 @@
|
|||
// Set options as a parameter, environment variable, or rc file.
|
||||
require = require('esm')(module)
|
||||
module.exports = require('./sync.js')
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "@uci-utils/sync",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"description": "module to copy, maintain, and launch hardware modules on other machines",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
"syncu": "./bin/sync.js"
|
||||
"syncu": "./bin/sync-cli"
|
||||
},
|
||||
"scripts": {
|
||||
"sync": "node -r esm ./bin/sync",
|
||||
|
|
|
@ -236,6 +236,7 @@ class Sync extends merge(Rsync, Emitter) {
|
|||
}
|
||||
if (errors) log.warn({errors: errors, cmd:cmd, msg:'sync ran but with with errors'})
|
||||
log.info({cmd:cmd, status:status, msg:'sync run'})
|
||||
if (!errors) this.emit('sync',status)
|
||||
resolve({cmd:cmd, errors:errors, status:status, msg:'sync run'})
|
||||
}, function(data) {
|
||||
status += data.toString()
|
||||
|
|
Loading…
Reference in New Issue