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:
@@ -133,9 +133,9 @@ export class UploadsController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (detectedType === 'ASYNCAPI') {
|
if (detectedType === 'ASYNCAPI') {
|
||||||
await execFileAsync('asyncapi', ['validate', mainPath], { env: execEnv, timeout: 30000 });
|
await execFileAsync('asyncapi', ['validate', mainPath], { env: execEnv, shell: true, timeout: 30000 });
|
||||||
} else {
|
} else {
|
||||||
await execFileAsync('redocly', ['lint', mainPath], { env: execEnv, timeout: 30000 });
|
await execFileAsync('redocly', ['lint', mainPath], { env: execEnv, shell: true, timeout: 30000 });
|
||||||
}
|
}
|
||||||
} catch (cliError) {
|
} catch (cliError) {
|
||||||
const err = cliError as NodeJS.ErrnoException & { stdout?: string; stderr?: string };
|
const err = cliError as NodeJS.ErrnoException & { stdout?: string; stderr?: string };
|
||||||
|
|||||||
Reference in New Issue
Block a user