Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Sep 19, 2023
2 parents bf919fd + c9faa44 commit 243eb46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions internal/nodejs/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func DetermineProjectFramework(ctx *nodePlanContext) types.NodeProjectFramework
return framework
}

if _, isNuejs := packageJSON.Dependencies["nuejs-core"]; isNuejs {
*fw = optional.Some(types.NodeProjectFrameworkNueJs)
return fw.Unwrap()
}

if _, isAstro := packageJSON.Dependencies["astro"]; isAstro {
if _, isAstroSSR := packageJSON.Dependencies["@astrojs/node"]; isAstroSSR {
*fw = optional.Some(types.NodeProjectFrameworkAstroSSR)
Expand Down
2 changes: 1 addition & 1 deletion internal/python/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func determineInstallCmd(ctx *pythonPlanContext) string {
}

func determineAptDependencies(ctx *pythonPlanContext) []string {
deps := []string{"build-essential"}
deps := []string{"build-essential", "pkg-config"}

// If we need to host static files, we need nginx.
staticPath := DetermineStaticInfo(ctx)
Expand Down
1 change: 1 addition & 0 deletions pkg/types/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const (
NodeProjectFrameworkSolidStart NodeProjectFramework = "solid-start"
NodeProjectFrameworkSolidStartNode NodeProjectFramework = "solid-start-node"
NodeProjectFrameworkSolidStartStatic NodeProjectFramework = "solid-start-static"
NodeProjectFrameworkNueJs NodeProjectFramework = "nuejs"
)

//revive:enable:exported
Expand Down

0 comments on commit 243eb46

Please sign in to comment.