Skip to content

Commit

Permalink
Remove packageManager warning (#858)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Soltis <418301+gsoltis@users.noreply.github.com>
  • Loading branch information
jaredpalmer and gsoltis authored Mar 10, 2022
1 parent 626dbc4 commit 526f08f
Showing 1 changed file with 0 additions and 6 deletions.
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

1 comment on commit 526f08f

@vercel
Copy link

@vercel vercel bot commented on 526f08f Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.