()
| 31 | } |
| 32 | |
| 33 | export function isRunningFromBuildDirectory(): boolean { |
| 34 | const invokedPath = normalizeRuntimePath(process.argv[1] || '') |
| 35 | const execPath = normalizeRuntimePath(process.execPath || process.argv[0] || '') |
| 36 | const pathsToCheck = [invokedPath, execPath] |
| 37 | const buildDirs = [ |
| 38 | '/build-ant/', |
| 39 | '/build-external/', |
| 40 | '/build-external-native/', |
| 41 | '/build-ant-native/', |
| 42 | ] |
| 43 | return pathsToCheck.some(path => buildDirs.some(dir => path.includes(dir))) |
| 44 | } |
| 45 | |
| 46 | export function isRunningFromSourceBuild(): boolean { |
| 47 | const invokedPath = process.argv[1] || '' |
no test coverage detected