BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-03-31 01:20:01 +02:00
parent 01f4a53b5b
commit e562e8f099
12 changed files with 17580 additions and 1076 deletions

View File

@ -1,13 +1,13 @@
import fs = require('fs');
import fs from 'fs';
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartstream from '../ts/index';
import * as smartstream from '../ts/index.js';
let testSmartstream: smartstream.Smartstream;
tap.test('should combine a stream', async () => {
testSmartstream = new smartstream.Smartstream([
fs.createReadStream('./test/assets/test.md'),
fs.createWriteStream('./test/assets/testCopy.md')
fs.createWriteStream('./test/assets/testCopy.md'),
]);
await testSmartstream.run();
});