File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2121 "homepage" : " https://github.com/rvagg/commit-stream" ,
2222 "devDependencies" : {
2323 "list-stream" : " ^2.1.0" ,
24+ "readable-stream" : " ^4.3.0" ,
2425 "split2" : " ^4.2.0" ,
2526 "tape" : " ^5.6.3"
2627 },
Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ import { spawn, exec } from 'node:child_process'
33import test from 'tape'
44import split2 from 'split2'
55import listStream from 'list-stream'
6+ import { pipeline } from 'readable-stream'
67
78function gitToList ( gitCmd , callback ) {
89 const child = spawn ( 'bash' , [ '-c' , gitCmd ] )
9- child . stdout
10- . pipe ( split2 ( ) )
11- . pipe ( commitStream ( ) )
12- . pipe ( listStream . obj ( callback ) )
10+ pipeline (
11+ child . stdout ,
12+ split2 ( ) ,
13+ commitStream ( ) ,
14+ listStream . obj ( callback ) ,
15+ ( ) => { }
16+ )
1317}
1418
1519test ( 'git is runnable' , ( t ) => {
You can’t perform that action at this time.
0 commit comments