diff --git a/internal/nodejs/plan.go b/internal/nodejs/plan.go index 05cc311c..d76cd6ac 100644 --- a/internal/nodejs/plan.go +++ b/internal/nodejs/plan.go @@ -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) diff --git a/pkg/types/plan.go b/pkg/types/plan.go index 118e59e6..b9eb9a27 100644 --- a/pkg/types/plan.go +++ b/pkg/types/plan.go @@ -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