(filePath)
| 22 | const { spawnSync } = require('child_process'); |
| 23 | |
| 24 | function isEvolverPackageJson(filePath) { |
| 25 | try { |
| 26 | const raw = fs.readFileSync(filePath, 'utf8'); |
| 27 | const pkg = JSON.parse(raw); |
| 28 | return pkg && (pkg.name === '@evomap/evolver' || pkg.name === 'evolver'); |
| 29 | } catch { |
| 30 | return false; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Scan a "versions dir" used by Node version managers (NVM, fnm, Volta, asdf) |
| 35 | // and append each `<versions-dir>/<version>/<subdir>/node_modules` to `out`. |
no test coverage detected