(dir)
| 65 | // correctly. For a dev clone, the boundary is null and the walk is |
| 66 | // unbounded as before. |
| 67 | function _nodeModulesBoundary(dir) { |
| 68 | const segments = dir.split(path.sep); |
| 69 | const nmIdx = segments.lastIndexOf('node_modules'); |
| 70 | if (nmIdx <= 0) return null; |
| 71 | return segments.slice(0, nmIdx).join(path.sep) || path.sep; |
| 72 | } |
| 73 | |
| 74 | function _walkForGit(start) { |
| 75 | const stopAt = _nodeModulesBoundary(start); |
no outgoing calls
no test coverage detected