9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import execa from 'execa'
|
|
|
|
export function executeJar(path: string, args: string[]) {
|
|
return execa('java', ['-jar', path, ...args], {
|
|
// Necessary for showing both stdout and stderr in error output
|
|
all: true,
|
|
})
|
|
}
|