diff --git a/packages/cli/src/ResponseHelper.ts b/packages/cli/src/ResponseHelper.ts index d09011eac0..4458316dcf 100644 --- a/packages/cli/src/ResponseHelper.ts +++ b/packages/cli/src/ResponseHelper.ts @@ -64,7 +64,11 @@ export function sendSuccessResponse(res: Response, data: any, raw?: boolean, res } if (raw === true) { - res.json(data); + if (typeof data === 'string') { + res.send(data); + } else { + res.json(data); + } } else { res.json({ data,