Skip to content

Commit

Permalink
add export of crds constants into typescript model (#1619)
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
  • Loading branch information
svor authored Aug 7, 2024
1 parent 793383d commit b10e979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/typescript-model/generate-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ def generate_typescript(api_version: str, group: str, kind: str, plural: str, si

def export_typescript_api(output_path: str) -> None:
"""
Export constants into api.ts
Export constants into index.ts
"""
export_contents = """
export * from './constants/constants';
"""
write_contents(os.path.join(output_path, "api.ts"), "a", export_contents)
write_contents(os.path.join(output_path, "index.ts"), "a", export_contents)


if __name__ == "__main__":
Expand Down

0 comments on commit b10e979

Please sign in to comment.