From 235e8053d1de97cfb6a6f060293201c513b3d448 Mon Sep 17 00:00:00 2001 From: z3n Date: Fri, 22 May 2026 15:22:07 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20compatibilit=C3=A9=20Windows=20pour=20la?= =?UTF-8?q?=20g=C3=A9n=C3=A9ration=20de=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - execFileAsync avec shell:true pour trouver asyncapi.cmd/redocly.cmd sur Windows - DOCS_OUTPUT_DIR par défaut ./docs-output (cross-platform) au lieu de /app/docs-output Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../modules/docs-generation/docs-generation.service.ts | 6 +++--- package.json | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/back/src/modules/docs-generation/docs-generation.service.ts b/back/src/modules/docs-generation/docs-generation.service.ts index d449b4d..7dc5121 100644 --- a/back/src/modules/docs-generation/docs-generation.service.ts +++ b/back/src/modules/docs-generation/docs-generation.service.ts @@ -9,7 +9,7 @@ const execFileAsync = promisify(execFile); @Injectable() export class DocsGenerationService { - private readonly outputDir = process.env.DOCS_OUTPUT_DIR ?? '/app/docs-output'; + private readonly outputDir = process.env.DOCS_OUTPUT_DIR ?? './docs-output'; constructor( @Inject(forwardRef(() => ApisService)) @@ -51,7 +51,7 @@ export class DocsGenerationService { '--no-interactive', '--install', '--force-write', - ]); + ], { shell: true }); } private async generateOpenApi(yamlPath: string, outputDir: string): Promise { @@ -59,6 +59,6 @@ export class DocsGenerationService { 'build-docs', yamlPath, '--output', path.join(outputDir, 'index.html'), - ]); + ], { shell: true }); } } diff --git a/package.json b/package.json index 7354364..147a45b 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,15 @@ "name": "datacat", "version": "0.1.0", "private": true, + "pnpm": { + "onlyBuiltDependencies": [ + "@nestjs/core", + "@parcel/watcher", + "esbuild", + "lmdb", + "msgpackr-extract" + ] + }, "scripts": { "dev": "docker compose -f infra/docker-compose.yml up", "dev:build": "docker compose -f infra/docker-compose.yml up --build",