fix(uploads): ajouter shell:true à execFile pour compatibilité Windows (.cmd)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
z3n
2026-06-24 09:23:26 +00:00
parent 60ed177335
commit 3b9ccecd69

View File

@@ -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 };