(dir)
| 12 | }; |
| 13 | |
| 14 | function findNearestApp (dir) { |
| 15 | if (!dir) { |
| 16 | dir = process.cwd(); |
| 17 | } |
| 18 | |
| 19 | if (isDevkitApp(dir)) { |
| 20 | return dir; |
| 21 | } else if (fs.existsSync(path.join(dir, '..'))) { |
| 22 | return findNearestApp(path.normalize(path.join(dir, '..'))); |
| 23 | } else { |
| 24 | return null; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | function isDevkitApp (cwd) { |
| 29 | var manifestPath = path.join(cwd, 'manifest.json'); |
no test coverage detected
searching dependent graphs…