(bundle: string, command: string, args: string[] = [], extraEnv: NodeJS.ProcessEnv = {}, input?: string)
| 43 | } |
| 44 | |
| 45 | function invoke(bundle: string, command: string, args: string[] = [], extraEnv: NodeJS.ProcessEnv = {}, input?: string) { |
| 46 | const convert = windows ? '$(cygpath -u "$1")' : '$1'; |
| 47 | // Exclude system Node: execution must use the runtime in the bundle. |
| 48 | return shell(`STAGE="${convert}"\nshift\nPATH="$STAGE/bin:/usr/bin:/bin"\nexport PATH\n${command}`, |
| 49 | [bundle, ...args], extraEnv, input); |
| 50 | } |
| 51 | |
| 52 | function probe(bundle: string) { |
| 53 | fs.writeFileSync(path.join(bundle, 'lib/dist/bin/codegraph.js'), ` |
no test coverage detected