Skip to content

Commit b7e4cc3

Browse files
authored
fix(planner/nodejs): vite can be in dependencies (#448)
#### Description (required) See SUP-2010, npm changed the CI installation behavior. #### Related issues & labels (optional) - Closes ZEA-4828 - Suggested label: enhancement
2 parents ee0c27e + 7e2be33 commit b7e4cc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/nodejs/plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func DetermineAppFramework(ctx *nodePlanContext) types.NodeProjectFramework {
391391
return fw.Unwrap()
392392
}
393393

394-
if _, isVite := packageJSON.DevDependencies["vite"]; isVite {
394+
if _, isVite := packageJSON.FindDependency("vite"); isVite {
395395
*fw = optional.Some(types.NodeProjectFrameworkVite)
396396
return fw.Unwrap()
397397
}

0 commit comments

Comments
 (0)