MCPcopy
hub / github.com/triggerdotdev/trigger.dev / gatherTaskFiles

Function gatherTaskFiles

packages/cli-v3/src/utilities/taskFiles.ts:20–29  ·  view source on GitHub ↗
(config: ResolvedConfig)

Source from the content-addressed store, hash-verified

18
19// Find all the top-level .js or .ts files in the trigger directories
20export async function gatherTaskFiles(config: ResolvedConfig): Promise<Array<TaskFile>> {
21 const taskFiles: Array<TaskFile> = [];
22
23 for (const triggerDir of config.triggerDirectories) {
24 const files = await gatherTaskFilesFromDir(triggerDir, triggerDir, config);
25 taskFiles.push(...files);
26 }
27
28 return taskFiles;
29}
30
31async function gatherTaskFilesFromDir(
32 dirPath: string,

Callers 2

runBuildFunction · 0.90
compileProjectFunction · 0.90

Calls 1

gatherTaskFilesFromDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…