diff --git a/back/src/modules/uploads/uploads.controller.ts b/back/src/modules/uploads/uploads.controller.ts index 44d0b43..2a34527 100644 --- a/back/src/modules/uploads/uploads.controller.ts +++ b/back/src/modules/uploads/uploads.controller.ts @@ -133,9 +133,9 @@ export class UploadsController { try { if (detectedType === 'ASYNCAPI') { - await execFileAsync('asyncapi', ['validate', mainPath], { env: execEnv, timeout: 30000 }); + await execFileAsync('asyncapi', ['validate', mainPath], { env: execEnv, shell: true, timeout: 30000 }); } else { - await execFileAsync('redocly', ['lint', mainPath], { env: execEnv, timeout: 30000 }); + await execFileAsync('redocly', ['lint', mainPath], { env: execEnv, shell: true, timeout: 30000 }); } } catch (cliError) { const err = cliError as NodeJS.ErrnoException & { stdout?: string; stderr?: string };