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

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed May 30, 2024
1 parent a5645bf commit 18ebe46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/project/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (s *stack) Run(ctx context.Context, input *StackInput) error {
slog.Info("running stack command", "cmd", input.Command)

updateID := os.Getenv("SST_UPDATE_ID")
if updateID == "" || !cuid2.IsCuid(updateID) || len(updateID) != cuid2.DefaultIdLength{
if updateID == "" || !cuid2.IsCuid(updateID) || len(updateID) != cuid2.DefaultIdLength {
updateID = cuid2.Generate()
}
err := s.Lock(updateID, input.Command)
Expand Down Expand Up @@ -450,12 +450,12 @@ func (s *stack) Run(ctx context.Context, input *StackInput) error {
links = map[string]interface{}{}
types[dir] = links
}
for _, link := range complete.Links {
if cloudflareBindings[link] != "" && receiver.Cloudflare != nil {
links[link] = literal{value: `import("@cloudflare/workers-types").` + cloudflareBindings[link]}
for name, link := range complete.Links {
if cloudflareBindings[name] != "" && receiver.Cloudflare != nil {
links[name] = literal{value: `import("@cloudflare/workers-types").` + cloudflareBindings[name]}
continue
}
links[link] = complete.Links[link]
links[name] = link
}
}

Expand Down

0 comments on commit 18ebe46

Please sign in to comment.