这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cli/internal/backends/nodejs/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package nodejs
import (
"fmt"
"io/ioutil"
"log"
"path/filepath"

"github.com/vercel/turborepo/cli/internal/api"
Expand Down Expand Up @@ -58,8 +57,6 @@ var NodejsYarnBackend = api.LanguageBackend{
return true, nil
}
} else {
log.Println("[WARNING] Did not find \"packageManager\" in your package.json. Please run \"npx @turbo/codemod add-package-manager\"")

specfileExists := fs.FileExists(filepath.Join(cwd, backend.Specfile))
lockfileExists := fs.FileExists(filepath.Join(cwd, backend.Lockfile))

Expand Down Expand Up @@ -118,7 +115,6 @@ var NodejsBerryBackend = api.LanguageBackend{
return true, nil
}
} else {
log.Println("[WARNING] Did not find \"packageManager\" in your package.json. Please set the \"packageManager\" field to your package.json")

specfileExists := fs.FileExists(filepath.Join(cwd, backend.Specfile))
lockfileExists := fs.FileExists(filepath.Join(cwd, backend.Lockfile))
Expand Down Expand Up @@ -187,7 +183,6 @@ var NodejsPnpmBackend = api.LanguageBackend{
return true, nil
}
} else {
log.Println("[WARNING] Did not find \"packageManager\" in your package.json. Please run \"npx @turbo/codemod add-package-manager\"")

specfileExists := fs.FileExists(filepath.Join(cwd, backend.Specfile))
lockfileExists := fs.FileExists(filepath.Join(cwd, backend.Lockfile))
Expand Down Expand Up @@ -232,7 +227,6 @@ var NodejsNpmBackend = api.LanguageBackend{
return true, nil
}
} else {
log.Println("[WARNING] Did not find \"packageManager\" in your package.json. Please run \"npx @turbo/codemod add-package-manager\"")

specfileExists := fs.FileExists(filepath.Join(cwd, backend.Specfile))
lockfileExists := fs.FileExists(filepath.Join(cwd, backend.Lockfile))
Expand Down