Skip to content

Commit

Permalink
use projectName for json file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Dec 16, 2024
1 parent 737074d commit 8677399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ const getJsonFiles = (projectName: string, modules: ReadonlyArray<Domain.Module>
)

return [File.createFile(
path.join(config.outDir, "docs.json"),
path.join(config.outDir, `${projectName.replace("/", "-")}.json`),
JSON.stringify(printables, null, 2),
true
)]
Expand Down

0 comments on commit 8677399

Please sign in to comment.