fix(core): update

This commit is contained in:
2023-11-25 18:11:31 +01:00
parent a2dd2ab6f0
commit e00eaca362
10 changed files with 2573 additions and 12729 deletions

View File

@@ -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;