Fix breakage in deploy command from recent TS conversion

Change-Type: patch
This commit is contained in:
Tim Perry 2018-01-11 10:22:26 +01:00
parent 7df277c0bc
commit 0ba96adbbc
2 changed files with 8 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import _ = require('lodash');
import chalk from 'chalk'; import chalk from 'chalk';
import { StreamLogger } from 'resin-stream-logger'; import { StreamLogger } from 'resin-stream-logger';
export class Logger { class Logger {
public streams: { public streams: {
build: NodeJS.ReadWriteStream; build: NodeJS.ReadWriteStream;
info: NodeJS.ReadWriteStream; info: NodeJS.ReadWriteStream;
@ -62,3 +62,5 @@ export class Logger {
return this.streams.error.write(msg + eol); return this.streams.error.write(msg + eol);
} }
} }
export = Logger;

View File

@ -1,10 +1,10 @@
export async function buffer( import Promise = require('bluebird');
import fs = require('fs');
export function buffer(
stream: NodeJS.ReadableStream, stream: NodeJS.ReadableStream,
bufferFile: string, bufferFile: string,
) { ): Promise<NodeJS.ReadableStream> {
const Promise = await import('bluebird');
const fs = await import('fs');
const fileWriteStream = fs.createWriteStream(bufferFile); const fileWriteStream = fs.createWriteStream(bufferFile);
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {