fix output

This commit is contained in:
Pig Fang 2020-05-30 10:58:53 +08:00
parent 2656b92fce
commit c662121ad9

View File

@ -88,12 +88,11 @@ function parseTree(tree: Tree): ts.ObjectLiteralExpression {
return ts.createObjectLiteral(properties)
}
const { stdout } = spawnSync('php', [
'artisan',
'route:list',
'--json',
'--columns=uri,name',
])
const { stdout } = spawnSync(
'php',
['artisan', 'route:list', '--json', '--columns=uri,name'],
{ encoding: 'utf-8' },
)
let routes: Route[] = []
try {
routes = JSON.parse(stdout)