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 { StreamLogger } from 'resin-stream-logger';
export class Logger {
class Logger {
public streams: {
build: NodeJS.ReadWriteStream;
info: NodeJS.ReadWriteStream;
@ -62,3 +62,5 @@ export class Logger {
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,
bufferFile: string,
) {
const Promise = await import('bluebird');
const fs = await import('fs');
): Promise<NodeJS.ReadableStream> {
const fileWriteStream = fs.createWriteStream(bufferFile);
return new Promise(function(resolve, reject) {