Skip to content

Commit

Permalink
delete IsYarn util (vercel#2668)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski authored and NicholasLYang committed Nov 14, 2022
1 parent edcbeba commit c383365
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/internal/util/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import (
"github.com/vercel/turbo/cli/internal/yaml"
)

// YarnRC Represents contents of .yarnrc.yml
type YarnRC struct {
NodeLinker string `yaml:"nodeLinker"`
}

func IsYarn(backendName string) bool {
return backendName == "nodejs-yarn" || backendName == "nodejs-berry"
}

// IsNMLinker Checks that Yarn is set to use the node-modules linker style
func IsNMLinker(cwd string) (bool, error) {
yarnRC := &YarnRC{}

Expand Down

0 comments on commit c383365

Please sign in to comment.