(path: string)
| 151 | } |
| 152 | |
| 153 | export 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 | |
| 163 | export async function detectPagesOrAppDir(path: string): Promise<"pages" | "app"> { |
| 164 | const withoutSrcAppPath = pathModule.join(path, "app"); |
no outgoing calls
no test coverage detected
searching dependent graphs…