Skip to content

Commit

Permalink
Merge 6553346 into f1c0e2f
Browse files Browse the repository at this point in the history
  • Loading branch information
md37 committed Jul 10, 2019
2 parents f1c0e2f + 6553346 commit b6a38d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"scripts": {
"coverage": "tap --coverage-report=text-lcov | coveralls",
"semantic-release": "semantic-release",
"start": "./bin/start.js",
"start": "node start.js",
"pretest": "standard",
"test": "tap --100 --jobs-auto './test/{unit,integration}/**/*-test.js'",
"postinstall": "node ./bin/setup.js",
Expand Down
20 changes: 20 additions & 0 deletions start.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var spawn = require('child_process').spawn
var os = require('os')
var start

function onLog (data) {
console.log(data.toString())
}

function onError (data) {
console.error(data.toString())
}

if (os.type() === 'Windows_NT') {
start = spawn('node', ['bin\\start.js'])
} else {
start = spawn('./bin/start.js')
}

start.stdout.on('data', onLog)
start.stderr.on('data', onError)

0 comments on commit b6a38d8

Please sign in to comment.