fix(core): update

This commit is contained in:
2023-09-11 10:29:01 +02:00
parent 8192cb7bf9
commit 1588c695ce
14 changed files with 5843 additions and 25979 deletions

View File

@@ -1,4 +1,4 @@
import * as plugins from './smartexit.plugins';
import * as plugins from './smartexit.plugins.js';
export class SmartExit {
public processesToEnd = new plugins.lik.ObjectMap<plugins.childProcess.ChildProcess>();
@@ -45,9 +45,9 @@ export class SmartExit {
console.log(`ChildProcesses look clean.`);
}
if (this.cleanupFunctions.getArray.length > 0) {
this.cleanupFunctions.forEach(async cleanupFunction => {
this.cleanupFunctions.forEach(async (cleanupFunction) => {
await cleanupFunction();
})
});
}
console.log(`Ready to exit!`);
}