(pkg: string, pkgs: string[], dev = true)
| 11 | export const runCmd = promisify(exec) |
| 12 | |
| 13 | export const install = async (pkg: string, pkgs: string[], dev = true) => |
| 14 | await runCmd(`${pkg} ${pkg === 'yarn' ? 'add' : 'i'} ${dev ? '-D' : '-S'} ${pkgs.join(' ')}`) |
| 15 | |
| 16 | const httpHeaders = { |
| 17 | headers: { 'user-agent': 'node.js' } |
no outgoing calls
no test coverage detected