(cmd, cwd)
| 497 | } |
| 498 | |
| 499 | function isCurrentLoopCommand(cmd, cwd) { |
| 500 | var raw = String(cmd || ''); |
| 501 | var lower = raw.toLowerCase(); |
| 502 | if (!lower.includes('node') || !lower.includes('--loop')) return false; |
| 503 | if (commandIncludesPath(raw, getLoopScript())) return true; |
| 504 | if (commandIncludesPath(raw, path.join(getRepoRoot(), 'index.js'))) return true; |
| 505 | return commandUsesCurrentRepoRelativeIndex(raw, cwd); |
| 506 | } |
| 507 | |
| 508 | function readPidFile(file) { |
| 509 | try { |
no test coverage detected