(cmd, cwd)
| 489 | } |
| 490 | |
| 491 | function commandUsesCurrentRepoRelativeIndex(cmd, cwd) { |
| 492 | if (!cwd) return false; |
| 493 | var script = getNodeScriptToken(splitCommandLine(cmd)); |
| 494 | if (!script || path.isAbsolute(script)) return false; |
| 495 | if (path.basename(script.replace(/\\/g, '/')).toLowerCase() !== 'index.js') return false; |
| 496 | return sameRealPath(path.resolve(cwd, script), path.join(getRepoRoot(), 'index.js')); |
| 497 | } |
| 498 | |
| 499 | function isCurrentLoopCommand(cmd, cwd) { |
| 500 | var raw = String(cmd || ''); |
no test coverage detected