File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 46
46
"ipfsd-ctl" : " ~0.40.1" ,
47
47
"ipfs-registry-mirror-common" : " ^1.0.12" ,
48
48
"once" : " ^1.4.0" ,
49
- "output-buffer" : " ^1.2.0" ,
50
49
"request" : " ^2.88.0" ,
51
50
"request-promise" : " ^4.2.2" ,
52
51
"which-promise" : " ^1.0.0" ,
59
58
"go-ipfs-dep" : " ~0.4.17" ,
60
59
"mock-require" : " ^3.0.2" ,
61
60
"npm-run-all" : " ^4.1.3" ,
61
+ "output-buffer" : " ^1.2.0" ,
62
62
"sinon" : " ^7.0.0" ,
63
63
"yarn" : " ^1.10.1"
64
64
},
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const {
10
10
} = require ( 'child_process' )
11
11
const which = require ( 'which-promise' )
12
12
const timeout = require ( 'ipfs-registry-mirror-common/utils/timeout-promise' )
13
- const OutputBuffer = require ( 'output-buffer' )
14
13
15
14
const cleanUpOps = [ ]
16
15
@@ -83,27 +82,14 @@ module.exports = async (options) => {
83
82
84
83
const proc = spawn ( packageManager , [
85
84
`--registry=http://localhost:${ options . http . port } `
86
- ] . concat ( process . argv . slice ( 2 ) ) )
87
-
88
- const buffer = new OutputBuffer ( ( line ) => {
89
- console . info ( `🐨 ${ line } ` ) // eslint-disable-line no-console
90
- } )
91
-
92
- proc . stdout . on ( 'data' , ( data ) => {
93
- buffer . append ( data . toString ( ) )
94
- } )
95
-
96
- proc . stderr . on ( 'data' , ( data ) => {
97
- buffer . append ( data . toString ( ) )
85
+ ] . concat ( process . argv . slice ( 2 ) ) , {
86
+ stdio : 'inherit'
98
87
} )
99
88
100
89
proc . on ( 'close' , async ( code ) => {
101
- buffer . flush ( )
102
-
103
90
console . log ( `🎁 ${ packageManager } exited with code ${ code } ` ) // eslint-disable-line no-console
104
91
105
92
await rewriteLockfile ( options )
106
-
107
93
await cleanUp ( )
108
94
109
95
process . exit ( code )
You can’t perform that action at this time.
0 commit comments