()
| 122 | } |
| 123 | |
| 124 | function computeProjectAppPath(): string { |
| 125 | if (cachedAppPath) return cachedAppPath; |
| 126 | let candidate: string | undefined; |
| 127 | try { |
| 128 | const config = nsConfigToJson(); |
| 129 | candidate = normalizePathSegment((config as any)?.appPath); |
| 130 | } catch {} |
| 131 | if (!candidate) { |
| 132 | candidate = deriveAppPathFromPackage(); |
| 133 | } |
| 134 | cachedAppPath = candidate || 'src'; |
| 135 | return cachedAppPath; |
| 136 | } |
| 137 | |
| 138 | export function getProjectAppPath(): string { |
| 139 | return computeProjectAppPath(); |
no test coverage detected