()
| 111 | } |
| 112 | |
| 113 | function deriveAppPathFromPackage(): string | undefined { |
| 114 | const mainEntry = packageJson?.main; |
| 115 | const normalized = normalizePathSegment(mainEntry); |
| 116 | if (!normalized) return undefined; |
| 117 | const segments = normalized.split('/').filter(Boolean); |
| 118 | if (segments.length >= 2) { |
| 119 | return segments[0]; |
| 120 | } |
| 121 | return undefined; |
| 122 | } |
| 123 | |
| 124 | function computeProjectAppPath(): string { |
| 125 | if (cachedAppPath) return cachedAppPath; |
no test coverage detected