Skip to content

Commit dfdc34a

Browse files
committed
fix: add gen:types-csharp target for CI
The C# types are handwritten (not auto-generated) so the target just outputs a message and exits successfully like Ruby. Amp-Thread-ID: https://ampcode.com/threads/T-019baef5-42c2-76ac-9db4-4be0c6931088
1 parent 0ef7626 commit dfdc34a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

internal/gen/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ func generateTypes(outDir, language string) error {
2323
return generatePythonTypes(generator, outDir)
2424
case "go":
2525
return generateGoTypes(generator, outDir)
26+
case "csharp":
27+
return generateCSharpTypes(generator, outDir)
2628
}
2729

2830
return nil

project.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@
6868
"parallel": false
6969
}
7070
},
71+
"gen:types-csharp": {
72+
"executor": "nx:run-commands",
73+
"options": {
74+
"commands": [
75+
"echo 'C# type generation not implemented (types are handwritten)'",
76+
"exit 0"
77+
],
78+
"parallel": false
79+
}
80+
},
7181
"gen:types-go": {
7282
"executor": "nx:run-commands",
7383
"options": {

0 commit comments

Comments
 (0)