Skip to content

Commit 52b7978

Browse files
committed
Fix transform usage
1 parent 351a046 commit 52b7978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/make-npm-override.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ async function readLicenses(dirname) {
131131
const stream = globStreamLicenses(dirname)
132132
const results = []
133133
for await (const license of transform(
134-
8, // Concurrency level.
134+
stream,
135135
async filepath => ({
136136
name: path.basename(filepath),
137137
content: await fs.readFile(filepath, UTF8)
138138
}),
139-
stream
139+
{ concurrency: 8 }
140140
)) {
141141
results.push(license)
142142
}

0 commit comments

Comments
 (0)