-
Notifications
You must be signed in to change notification settings - Fork 519
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
Why is yarn_install preferred over npm_install? #403
Comments
I believe the main reason is performance. The yarn_install rule will use the global yarn cache by default which makes subsequent yarn installs faster as they can fetch packages from the local cache. The option is |
Another reason is that yarn's lockfile semantics and correctness are a bit better than NPMs. |
Also this: #416 |
- files that weren't staged after on-version.js - karma version from upstream (for local dev) - missing internal/BUILD file in the npm package Also Deprecate rules_typescript_dependencies it contains only rules_nodejs which users will have to install first anyway Closes bazelbuild#403 PiperOrigin-RevId: 232371626
- files that weren't staged after on-version.js - karma version from upstream (for local dev) - missing internal/BUILD file in the npm package Also Deprecate rules_typescript_dependencies it contains only rules_nodejs which users will have to install first anyway Closes bazelbuild#403 PiperOrigin-RevId: 232371626
Hi @gregmagolan and @alexeagle,
In the README.md#182 you wrote that
yarn_install
is preferred overnpm_install
. Why is that?We're migrating our repo to Bazel right now and we have some packages built with Yarn, and some with NPM. We want to just pick one, and we're currently siding with NPM, but we can choose Yarn instead if there are strong benefits on why Bazel prefers Yarn.
Thank you!
The text was updated successfully, but these errors were encountered: