fix(core): update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// this file contains the code to generate and handle the stream
|
||||
|
||||
import * as plugins from './smartgulp.plugins.js';
|
||||
import { Smartfile } from '@pushrocks/smartfile';
|
||||
import { SmartFile } from '@push.rocks/smartfile';
|
||||
|
||||
import { Transform } from 'stream';
|
||||
|
||||
@@ -11,7 +11,7 @@ export class GulpStream {
|
||||
/**
|
||||
* allows you to pipe a SmartfileArray into the stream
|
||||
*/
|
||||
async pipeSmartfileArray(smartfileArray: Smartfile[]) {
|
||||
async pipeSmartfileArray(smartfileArray: SmartFile[]) {
|
||||
// ensure what we get is an array
|
||||
if (!Array.isArray(smartfileArray)) {
|
||||
throw new Error('fileArg has unknown format');
|
||||
@@ -20,8 +20,6 @@ export class GulpStream {
|
||||
let hasWritten = this.stream.push(smartfile);
|
||||
if (!hasWritten) {
|
||||
await plugins.smartevent.once(this.stream, 'drain');
|
||||
} else {
|
||||
// iterate
|
||||
}
|
||||
}
|
||||
// signal end of stream;
|
||||
|
||||
Reference in New Issue
Block a user