fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal 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'
|
||||
}
|
@ -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!`);
|
||||
}
|
||||
|
@ -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 };
|
||||
|
Reference in New Issue
Block a user