(dir: string, name: string, scriptBody: string)
| 79 | } |
| 80 | |
| 81 | const createShimCommand = (dir: string, name: string, scriptBody: string) => { |
| 82 | const target = path.join(dir, name) |
| 83 | fs.writeFileSync( |
| 84 | target, |
| 85 | ['#!/usr/bin/env bash', 'set -euo pipefail', scriptBody].join('\n'), |
| 86 | 'utf-8', |
| 87 | ) |
| 88 | fs.chmodSync(target, 0o755) |
| 89 | } |
| 90 | |
| 91 | const parsePackJsonOutput = <T>(output: string): T => { |
| 92 | const start = output.search(/^\s*[\[{]/m) |
no outgoing calls
no test coverage detected