-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine automatically the package manager #918
Comments
Great suggestion @kcampion . |
Update: I've started to work on this feature (along with some other cool features for bit init) in this branch: https://github.com/teambit/bit/tree/feature/interactive-init |
I'm not sure that Bit should decide on the package manager automatically. I'm seeing a lot of projects that switch between these tools every other day... As each has its own faults. While this should be solved by a better experience for |
As additional feedback, the following issue: #1578 wouldn't happen if Bit was automatically recognized Yarn as the package manager. |
An interactive init process probably makes the most sense, but a |
@orinokai There is a lot of cases when you have both yarn.lock and pacakge-lock.json. |
Resolved using the interactive flow of |
Expected Behavior
When we use
$ bit init
, it should be great if "bit" detects the package manager automatically and sets the good value forpackageManager
into bit.json.It's easy to determine the default package manager used into a project:
package-lock.json
for NPMyarn.lock
for Yarn.Actual Behavior
When we do a
$ bit init
,packageManager
is configured with"npm"
by default.The text was updated successfully, but these errors were encountered: