File tree Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This main.go generates typescript types from the codersdk types in Go.
4
4
5
+ Uses it's own ` go.mod ` to exclude goja deps from the main go.mod.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ go 1.23.0
5
5
toolchain go1.23.3
6
6
7
7
require (
8
- github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5
8
+ github.com/coder/gots v0.0.0-20241126222907-985a03a876f0
9
9
github.com/stretchr/testify v1.10.0
10
10
)
11
11
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ github.com/coder/gots v0.0.0-20241126213537-91cc19e817e5 h1:zBru83IE+s2sc3p11gm/
60
60
github.com/coder/gots v0.0.0-20241126213537-91cc19e817e5 /go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg =
61
61
github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5 h1:f/mc6/A4owCKhJAjSGtWk/kvY6UVKmkE5feWzLeDWHc =
62
62
github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5 /go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg =
63
+ github.com/coder/gots v0.0.0-20241126222907-985a03a876f0 h1:0jxONsMRoXchCdCcfcXlaVm1ciLkF6LLBDa7OgF4HJw =
64
+ github.com/coder/gots v0.0.0-20241126222907-985a03a876f0 /go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg =
63
65
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs =
64
66
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 /go.mod h1:5UuS2Ts+nTToAMeOjNlnHFkPahrtDkmpydBen/3wgZc =
65
67
github.com/coder/serpent v0.8.0 h1:6OR+k6fekhSeEDmwwzBgnSjaa7FfGGrMlc3GoAEH9dg =
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func main() {
23
23
24
24
generateDirectories := []string {
25
25
"github.com/coder/coder/v2/codersdk" ,
26
- // "github.com/coder/coder/codersdk/health",
26
+ "github.com/coder/coder/v2 /codersdk/health" ,
27
27
}
28
28
for _ , dir := range generateDirectories {
29
29
err = gen .Include (dir , true )
@@ -34,7 +34,7 @@ func main() {
34
34
35
35
referencePackages := []string {
36
36
"github.com/coder/serpent" ,
37
- //". /coderd/healthcheck/health",
37
+ "github.com/coder/coder/v2 /coderd/healthcheck/health" ,
38
38
}
39
39
for _ , pkg := range referencePackages {
40
40
err = gen .Include (pkg , false )
Original file line number Diff line number Diff line change 2
2
3
3
// From codersdk/genericmap.go
4
4
export interface Buzz {
5
+ readonly foo : Foo ;
5
6
readonly bazz : string ;
6
7
}
7
8
You can’t perform that action at this time.
0 commit comments