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

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@push.rocks/smartexit',
version: '1.0.21',
description: 'do things before one exists a process'
}

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!`);
}

View File

@ -4,7 +4,7 @@ import * as childProcess from 'child_process';
export { childProcess };
// pushrocks scope
import * as lik from '@pushrocks/lik';
import * as smartdelay from '@pushrocks/smartdelay';
import * as lik from '@push.rocks/lik';
import * as smartdelay from '@push.rocks/smartdelay';
export { lik, smartdelay };