File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 71
71
"scripts" : {
72
72
"coverage" : " tap --coverage-report=text-lcov | coveralls" ,
73
73
"semantic-release" : " semantic-release" ,
74
- "start" : " ./bin/ start.js" ,
74
+ "start" : " node start.js" ,
75
75
"pretest" : " standard" ,
76
76
"test" : " tap --100 --jobs-auto './test/{unit,integration}/**/*-test.js'" ,
77
77
"postinstall" : " node ./bin/setup.js" ,
Original file line number Diff line number Diff line change
1
+ var spawn = require ( 'child_process' ) . spawn
2
+ var os = require ( 'os' )
3
+ var start
4
+
5
+ function onLog ( data ) {
6
+ console . log ( data . toString ( ) )
7
+ }
8
+
9
+ function onError ( data ) {
10
+ console . error ( data . toString ( ) )
11
+ }
12
+
13
+ if ( os . type ( ) === 'Windows_NT' ) {
14
+ start = spawn ( 'node' , [ 'bin\\start.js' ] )
15
+ } else {
16
+ start = spawn ( './bin/start.js' )
17
+ }
18
+
19
+ start . stdout . on ( 'data' , onLog )
20
+ start . stderr . on ( 'data' , onError )
You can’t perform that action at this time.
0 commit comments