(bundle: string)
| 50 | } |
| 51 | |
| 52 | function probe(bundle: string) { |
| 53 | fs.writeFileSync(path.join(bundle, 'lib/dist/bin/codegraph.js'), ` |
| 54 | console.log(JSON.stringify({args: process.argv.slice(2), flags: process.execArgv, |
| 55 | host: process.env.CODEGRAPH_HOST_PPID, exe: process.execPath})); |
| 56 | process.exit(23); |
| 57 | `); |
| 58 | } |
| 59 | |
| 60 | function checkForwarding(bundle: string) { |
| 61 | probe(bundle); |