pipeline improvements

pull/496/head
Frostebite 2023-02-12 13:00:21 +00:00
parent 7359f2caae
commit 53f3a1d6ae
3 changed files with 11 additions and 3 deletions

6
dist/index.js generated vendored
View File

@ -4747,7 +4747,11 @@ class CloudRunnerCustomHooks {
throw error; throw error;
} }
} }
return output.filter((x) => x.hook !== undefined && x.hook.length > 0); return [
...output.filter((x) => x.hook !== undefined && x.hook.length > 0),
...CloudRunnerCustomHooks.GetCustomHooksFromFiles(`before`),
...CloudRunnerCustomHooks.GetCustomHooksFromFiles(`after`),
];
} }
static GetCustomHooksFromFiles(hookLifecycle) { static GetCustomHooksFromFiles(hookLifecycle) {
const results = []; const results = [];

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,11 @@ export class CloudRunnerCustomHooks {
} }
} }
return output.filter((x) => x.hook !== undefined && x.hook.length > 0); return [
...output.filter((x) => x.hook !== undefined && x.hook.length > 0),
...CloudRunnerCustomHooks.GetCustomHooksFromFiles(`before`),
...CloudRunnerCustomHooks.GetCustomHooksFromFiles(`after`),
];
} }
static GetCustomHooksFromFiles(hookLifecycle: string): Hook[] { static GetCustomHooksFromFiles(hookLifecycle: string): Hook[] {