mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 14:37:47 +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 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;
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user