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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user