MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getConfigPath

Function getConfigPath

packages/cli-v3/src/utilities/configFiles.ts:93–101  ·  view source on GitHub ↗
(dir: string, fileName?: string)

Source from the content-addressed store, hash-verified

91}
92
93async function getConfigPath(dir: string, fileName?: string): Promise<string | undefined> {
94 logger.debug("Searching for the config file", {
95 dir,
96 fileName,
97 configFiles: CONFIG_FILES,
98 });
99
100 return await findUp(fileName ? [fileName] : CONFIG_FILES, { cwd: dir });
101}
102
103async function findFilePath(dir: string, fileName: string): Promise<string | undefined> {
104 const result = await findUp([fileName], { cwd: dir });

Callers 1

readConfigFunction · 0.85

Calls 1

debugMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…