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 )]