(context: PostprocessContext)
| 13 | import type { PostprocessContext } from "./context/postprocess.js"; |
| 14 | |
| 15 | export const postprocess = async (context: PostprocessContext) => { |
| 16 | allocateTypesToFiles(context); |
| 17 | prepareFileContents(context); |
| 18 | generateEntityDefinitions(context); |
| 19 | generateLinkAndTargetDefinitions(context); |
| 20 | generateBlockEntityTypeAliases(context); |
| 21 | generateBlockLinkTargetAliases(context); |
| 22 | appendIdentifierDefinitionsToFileContents(context); |
| 23 | addMetadataDependenciesToFiles(context); |
| 24 | prependImportsAndExports(context); |
| 25 | prependBannerComments(context); |
| 26 | |
| 27 | /* @todo - Generate mappings of TypeURLs to prettified names (fallback to camelCased title if not overriden) */ |
| 28 | |
| 29 | await writeToFiles(context); |
| 30 | }; |
no test coverage detected