fix(core): update
This commit is contained in:
19
test/test.ts
19
test/test.ts
@ -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();
|
||||
|
@ -7,7 +7,7 @@ function sealed(constructor: Function) {
|
||||
|
||||
@sealed
|
||||
class BugReport {
|
||||
type = "report";
|
||||
type = 'report';
|
||||
title: string;
|
||||
|
||||
constructor(t: string) {
|
||||
|
Reference in New Issue
Block a user