fix(core): update

This commit is contained in:
2019-05-08 11:16:24 +02:00
parent 3a8513d3a0
commit 7ce6245286
11 changed files with 68 additions and 34 deletions

View File

@ -2,4 +2,4 @@ import * as early from '@pushrocks/early';
early.start('tswatch');
export * from './tswatch.classes.tswatch';
import './tswatch.cli';
early.stop();
early.stop();

View File

@ -31,7 +31,7 @@ export class TsWatch {
const changeObservable = await this.watcher.getObservableFor('change');
changeObservable.subscribe(() => {
this.updateCurrentExecution();
})
});
this.updateCurrentExecution();
}
@ -39,7 +39,9 @@ export class TsWatch {
if (this.currentExecution) {
process.kill(-this.currentExecution.childProcess.pid);
}
this.currentExecution = await this.smartshellInstance.execStreaming(this.options.commandToExecute);
this.currentExecution = await this.smartshellInstance.execStreaming(
this.options.commandToExecute
);
this.currentExecution = null;
}

View File

@ -5,7 +5,7 @@ export const logger = new plugins.smartlog.Smartlog({
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
environment: "local",
environment: 'local',
runtime: 'node',
zone: 'gitzone'
},

View File

@ -9,4 +9,4 @@ import * as smartlog from '@pushrocks/smartlog';
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
import * as smartshell from '@pushrocks/smartshell';
export { smartchok, smartcli, smartdelay, smartlog, smartlogDestinationLocal, smartshell, };
export { smartchok, smartcli, smartdelay, smartlog, smartlogDestinationLocal, smartshell };