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

Function detectUseOfSrcDir

packages/cli/src/frameworks/nextjs/index.ts:153–161  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

151}
152
153export async function detectUseOfSrcDir(path: string): Promise<boolean> {
154 // Detects if the project is using a src directory
155 try {
156 await fs.access(pathModule.join(path, "src"));
157 return true;
158 } catch (error) {
159 return false;
160 }
161}
162
163export async function detectPagesOrAppDir(path: string): Promise<"pages" | "app"> {
164 const withoutSrcAppPath = pathModule.join(path, "app");

Callers 3

installMethod · 0.85
nextjs.test.tsFile · 0.85
detectMiddlewareUsageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…