refactor: update dependencies

This commit is contained in:
Rainer Killinger
2020-02-11 15:00:34 +01:00
parent 5456d4e7c0
commit 3196cd986e
15 changed files with 977 additions and 1323 deletions

View File

@@ -14,7 +14,7 @@
*/
import {SCThingType} from '@openstapps/core';
import {Logger} from '@openstapps/logger';
import * as commander from 'commander';
import {Command} from 'commander';
import {readFileSync} from 'fs';
import {join} from 'path';
import {URL} from 'url';
@@ -22,17 +22,18 @@ import {copy} from './copy';
import {e2eRun} from './e2e';
import {HttpClient} from './http-client';
process.on('unhandledRejection', async (error) => {
await Logger.error('unhandledRejection', error);
});
const pkgJson = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'))
.toString());
const client = new HttpClient();
const commander = new Command();
let actionDone = false;
process.on('unhandledRejection', async (error) => {
await Logger.error('unhandledRejection', error);
});
commander
.command('e2e <to>')
.description('Run in end to end test mode. Indexing and afterwards retrieving all test files from @openstapp/core to the backend')