Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Replace gen-schema Go module with zarf internal gen-types-schema cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rodriguez committed Nov 30, 2023
1 parent 261add9 commit 94be272
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 1,455 deletions.
4 changes: 3 additions & 1 deletion capabilities/zarf-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

export interface ZarfTypes {
DeployedPackage: DeployedPackage;
ZarfPackage: ZarfPackage;
ZarfState: ZarfState;
}

Expand Down Expand Up @@ -447,7 +448,7 @@ export interface ZarfChart {
*/
gitPath?: string;
/**
* The path to the chart folder
* The path to the local chart's folder or .tgz archive
*/
localPath?: string;
/**
Expand Down Expand Up @@ -1160,6 +1161,7 @@ function r(name: string) {
const typeMap: any = {
"ZarfTypes": o([
{ json: "DeployedPackage", js: "DeployedPackage", typ: r("DeployedPackage") },
{ json: "ZarfPackage", js: "ZarfPackage", typ: r("ZarfPackage") },
{ json: "ZarfState", js: "ZarfState", typ: r("ZarfState") },
], false),
"DeployedPackage": o([
Expand Down
6 changes: 0 additions & 6 deletions go.work

This file was deleted.

1,111 changes: 0 additions & 1,111 deletions go.work.sum

This file was deleted.

2 changes: 1 addition & 1 deletion hack/gen-schema/gen-schema.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh

# Create the json schema for the Zarf structs and use it to create the typescript definitions
go run hack/gen-schema/main.go | npx quicktype -s schema -o ./capabilities/zarf-types.ts
zarf internal gen-types-schema | npx quicktype -s schema -o ./capabilities/zarf-types.ts
69 changes: 0 additions & 69 deletions hack/gen-schema/go.mod

This file was deleted.

Loading

0 comments on commit 94be272

Please sign in to comment.