From 3b9ccecd69bac9ff3a96e38fbbc6d5abeb2f9372 Mon Sep 17 00:00:00 2001 From: z3n Date: Wed, 24 Jun 2026 09:23:26 +0000 Subject: [PATCH] =?UTF-8?q?fix(uploads):=20ajouter=20shell:true=20=C3=A0?= =?UTF-8?q?=20execFile=20pour=20compatibilit=C3=A9=20Windows=20(.cmd)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- back/src/modules/uploads/uploads.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };