Skip to content

Commit

Permalink
feat: add surgio type
Browse files Browse the repository at this point in the history
  • Loading branch information
fredliang44 committed Jul 10, 2022
1 parent 1bcab61 commit 81c2aaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handler/deploy/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
}
maps.Copy(packageConfig.Dependencies, packageConfig.DevDependencies)
for k := range packageConfig.Dependencies {
if strings.Contains(k, "@surgio/gateway") {
c.Type = "surgio"
return "surgio"
}

if strings.Contains(k, "express") {
c.Type = "express"
return "express"
Expand Down

0 comments on commit 81c2aaf

Please sign in to comment.