From 86773999d0af921a94e9817af2ddb992e19a531e Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 17 Dec 2024 11:11:18 +1300 Subject: [PATCH] use projectName for json file name --- schema.json | 5 +++++ src/Core.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/schema.json b/schema.json index e1fcb9c..9011e34 100644 --- a/schema.json +++ b/schema.json @@ -100,6 +100,11 @@ "type": "boolean", "description": "Whether or not to enable AI for the examples", "default": true + }, + "enableJson": { + "type": "boolean", + "description": "Whether or not to output JSON files", + "default": true } }, "additionalProperties": false diff --git a/src/Core.ts b/src/Core.ts index 5383c6c..cf14720 100644 --- a/src/Core.ts +++ b/src/Core.ts @@ -606,7 +606,7 @@ const getJsonFiles = (projectName: string, modules: ReadonlyArray ) return [File.createFile( - path.join(config.outDir, "docs.json"), + path.join(config.outDir, `${projectName.replace("/", "-")}.json`), JSON.stringify(printables, null, 2), true )]