@travetto/base
Advanced tools
Comparing version 0.0.94 to 0.0.95
@@ -22,3 +22,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.94" | ||
"version": "0.0.95" | ||
} |
import { requireAppFiles } from './scan-app'; | ||
interface Initializer { | ||
action: Function; | ||
action: () => Promise<number[]> | number[] | undefined; | ||
priority?: number; | ||
@@ -25,6 +25,9 @@ } | ||
async run() { | ||
const pids = []; | ||
for (const i of this.initializers) { | ||
await i.action(); | ||
const res = await i.action(); | ||
pids.push(...(res ? res : [])); | ||
} | ||
return pids; | ||
} | ||
} |
32471
965