made command be obligatory for spawner. not sure why tbh

This commit is contained in:
Noah Santschi-Cooney 2018-05-31 23:12:45 +01:00
parent ab0d4c977f
commit 83f699f797
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48

View file

@ -1,7 +1,8 @@
import { spawn } from 'child_process'
export function runLinter(...args: any[]) {
const child = spawn(args[0], ...(args.slice(1)))
//
export function runLinter(command: string, ...args: any[]) {
const child = spawn(command, ...args)
let stderr = ''
child.stderr.on('data', data => {