mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 22:23:07 +00:00
Fix breakage in deploy command from recent TS conversion
Change-Type: patch
This commit is contained in:
parent
7df277c0bc
commit
0ba96adbbc
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user