fix(docs-generation): utiliser le chemin local du template asyncapi

Passer le chemin absolu node_modules/@asyncapi/html-template au lieu
du nom de package — bypasse la vérification registry.npmjs.org.

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-05-29 14:02:30 +00:00
parent 90eab514b2
commit 67609231d9

View File

@@ -50,10 +50,12 @@ export class DocsGenerationService {
}
private async generateAsyncApi(yamlPath: string, outputDir: string): Promise<void> {
/* Chemin local du template — évite l'appel réseau vers registry.npmjs.org */
const templatePath = path.join(process.cwd(), 'node_modules', '@asyncapi', 'html-template');
await execFileAsync('asyncapi', [
'generate', 'fromTemplate',
yamlPath,
'@asyncapi/html-template',
templatePath,
'--output', outputDir,
'--no-interactive',
'--force-write',