fix: multistream export cast

This commit is contained in:
calebboyd
2019-10-09 10:54:03 -05:00
parent 5ec04f5791
commit 4112bd7b3e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "nexe",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+2 -2
View File
@@ -1,7 +1,7 @@
import { stat as getStat, Stats, createReadStream } from 'fs'
import { relative } from 'path'
import { Readable } from 'stream'
import combineStreams = require('multistream')
import MultiStream = require('multistream')
const stat = (file: string): Promise<Stats> => {
return new Promise((resolve, reject) => {
@@ -61,7 +61,7 @@ export class Bundle {
}
toStream() {
return combineStreams(this.streams)
return new (MultiStream as any)(this.streams)
}
toJSON() {