()
| 49 | |
| 50 | |
| 51 | function getVersion(): string { |
| 52 | try { |
| 53 | const packageJsonPath = path.join(__dirname, '..', '..', 'package.json'); |
| 54 | const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')); |
| 55 | return packageJson.version; |
| 56 | } catch { |
| 57 | return '0.0.0'; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | export interface RunInstallerOptions { |
| 62 | /** Comma-separated target list, or `auto` / `all` / `none`. */ |
no test coverage detected