File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 21
21
"homepage" : " https://github.com/rvagg/commit-stream" ,
22
22
"devDependencies" : {
23
23
"list-stream" : " ^2.1.0" ,
24
+ "readable-stream" : " ^4.3.0" ,
24
25
"split2" : " ^4.2.0" ,
25
26
"tape" : " ^5.6.3"
26
27
},
Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ import { spawn, exec } from 'node:child_process'
3
3
import test from 'tape'
4
4
import split2 from 'split2'
5
5
import listStream from 'list-stream'
6
+ import { pipeline } from 'readable-stream'
6
7
7
8
function gitToList ( gitCmd , callback ) {
8
9
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
+ )
13
17
}
14
18
15
19
test ( 'git is runnable' , ( t ) => {
You can’t perform that action at this time.
0 commit comments