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> {
|
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', [
|
await execFileAsync('asyncapi', [
|
||||||
'generate', 'fromTemplate',
|
'generate', 'fromTemplate',
|
||||||
yamlPath,
|
yamlPath,
|
||||||
'@asyncapi/html-template',
|
templatePath,
|
||||||
'--output', outputDir,
|
'--output', outputDir,
|
||||||
'--no-interactive',
|
'--no-interactive',
|
||||||
'--force-write',
|
'--force-write',
|
||||||
|
|||||||
Reference in New Issue
Block a user