fix(core): update
This commit is contained in:
parent
04a77f9eeb
commit
20bf5dfc57
3
cli.js
3
cli.js
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.CLI_CALL = 'true';
|
||||
require('./dist/index');
|
||||
const cliTool = require('./dist/index');
|
||||
cliTool.runCli();
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.CLI_CALL = 'true';
|
||||
require('@gitzone/tsrun');
|
||||
require('./ts/index');
|
||||
const cliTool = require('./ts/index');
|
||||
cliTool.runCli();
|
||||
|
@ -2,8 +2,7 @@ import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as tsbundle from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
tsbundle;
|
||||
console.log('hi');
|
||||
await tsbundle.runCli();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
@ -7,9 +7,8 @@ import { logger } from './tsbundle.logging';
|
||||
import { runCli } from './tsbundle.cli';
|
||||
early.stop();
|
||||
|
||||
if (process.env.CLI_CALL) {
|
||||
runCli();
|
||||
}
|
||||
|
||||
// lets make this usable programmatically
|
||||
export * from './tsbundle.class.tsbundle';
|
||||
export {
|
||||
runCli
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user