chore: switch to guts for typescript types generation (#15801)

switch to guts for typescript type generation
omitempty vs null must now be explicit
This commit is contained in:
Steven Masley
2024-12-11 14:39:21 -06:00
committed by GitHub
parent 2ec2e8ae6d
commit 077e594856
36 changed files with 2125 additions and 1684 deletions
+3 -1
View File
@@ -640,7 +640,9 @@ vpn/vpn.pb.go: vpn/vpn.proto
./vpn/vpn.proto
site/src/api/typesGenerated.ts: $(wildcard scripts/apitypings/*) $(shell find ./codersdk $(FIND_EXCLUSIONS) -type f -name '*.go')
go run ./scripts/apitypings/ > $@
# -C sets the directory for the go run command
go run -C ./scripts/apitypings main.go > $@
(cd ./site && npx biome format --write ./src/api/typesGenerated.ts)
./scripts/pnpm_install.sh
site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisionersdk/proto/provisioner.pb.go