fix(core): update

This commit is contained in:
2022-03-14 16:32:12 +01:00
parent 5f92b58353
commit 3c9b178c09
21 changed files with 660 additions and 389 deletions

View File

@ -1,16 +1,25 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as tsbundle from '../dist_ts/index';
import * as tsbundle from '../dist_ts/index.js';
import * as path from 'path';
tap.test('should bundle test', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.buildTest(process.cwd() + '/test', './ts_web/index.ts', './dist_manual/test.js', 'rollup')
})
await tsbundleInstance.buildTest(
process.cwd() + '/test',
'./ts_web/index.ts',
'./dist_manual/test.js',
'rollup'
);
});
tap.test('should bundle production', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.buildProduction(process.cwd(), './test/ts_web/index.ts', './test/dist_manual/production.js')
})
await tsbundleInstance.buildProduction(
process.cwd(),
'./test/ts_web/index.ts',
'./test/dist_manual/production.js'
);
});
tap.start();