Skip to content

Commit 70062d4

Browse files
aduh95rvagg
authored andcommitted
chore: use pipeline from node:stream/promises
Instead of calling `promisify` on the callback version.
1 parent 977236d commit 70062d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: branch-diff.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fs from 'fs'
44
import { createRequire } from 'module'
55
import path from 'path'
66
import process from 'process'
7-
import { pipeline as _pipeline } from 'stream'
7+
import { pipeline } from 'stream/promises'
88
import { promisify } from 'util'
99
import commitStream from 'commit-stream'
1010
import split2 from 'split2'
@@ -15,7 +15,6 @@ import { processCommits } from 'changelog-maker/process-commits'
1515
import { collectCommitLabels } from 'changelog-maker/collect-commit-labels'
1616
import gitexec from 'gitexec'
1717

18-
const pipeline = promisify(_pipeline)
1918
const pkgFile = path.join(process.cwd(), 'package.json')
2019
const require = createRequire(import.meta.url)
2120
const pkgData = fs.existsSync(pkgFile) ? require(pkgFile) : {}

0 commit comments

Comments
 (0)