fix: serialize shims/resources in upstream step

closes #677
This commit is contained in:
calebboyd
2019-10-09 12:19:12 -05:00
parent 4112bd7b3e
commit 1e54736fec
5 changed files with 201 additions and 361 deletions
+6 -3
View File
@@ -14,9 +14,12 @@ function makeRelative(cwd: string, path: string) {
}
export function toStream(content: Buffer | string) {
const readable = new Readable({ read() {} })
readable.push(content)
readable.push(null)
const readable = new Readable({
read() {
this.push(content)
this.push(null)
}
})
return readable
}