@@ -737,13 +737,16 @@ def typedsl_loader(self, inner: TypeDef, ref_scope: Optional[int]) -> TypeDef:
737
737
)
738
738
739
739
def epilogue (self , root_loader : TypeDef ) -> None :
740
+
740
741
"""Trigger to generate the epilouge code."""
741
742
pd = "This project contains TypeScript objects and utilities "
742
743
pd = pd + ' auto-generated by <a href=\\ "https://github.com/'
743
744
pd = pd + 'common-workflow-language/schema_salad\\ ">Schema Salad</a>'
744
745
pd = pd + " for parsing documents corresponding to the "
745
746
pd = pd + str (self .base_uri ) + " schema."
746
- generated_class_imports = ",\n " .join (self .record_types )
747
+
748
+ sorted_record_types = sorted (self .record_types )
749
+ generated_class_imports = ",\n " .join (sorted_record_types )
747
750
template_vars : MutableMapping [str , str ] = dict (
748
751
project_name = self .package ,
749
752
version = "0.0.1-SNAPSHOT" ,
@@ -784,8 +787,9 @@ def expand_resource_template_to(resource: str, path: Path) -> None:
784
787
collected_type .name , collected_type .init
785
788
)
786
789
790
+ sorted_modules = sorted (self .modules )
787
791
internal_module_exports = "\n " .join (
788
- f"export * from '../{ f } '" for f in self . modules
792
+ f"export * from '../{ f } '" for f in sorted_modules
789
793
)
790
794
791
795
example_tests = ""
0 commit comments