MyGit

yarnpkg/berry

Fork: 1110 Star: 7419 (更新于 2024-10-30 06:34:15)

license: BSD-2-Clause

Language: TypeScript .

📦🐈 Active development trunk for Yarn ⚒

最后发布版本: @yarnpkg/cli/4.5.0 ( 2024-09-14 20:52:51)

官方网址 GitHub网址

Yarn

Fast, reliable, and secure dependency management.

GitHub Actions status Discord Chat Latest CLI Release


Yarn is a modern package manager split into various packages. Its novel architecture allows to do things currently impossible with existing solutions:

  • Yarn supports plugins; adding a plugin is as simple as adding it into your repository
  • Yarn supports Node by default but isn't limited to it - plugins can add support for other languages
  • Yarn supports workspaces natively, and its CLI takes advantage of that
  • Yarn uses a bash-like portable shell to make package scripts portable across Windows, Linux, and macOS
  • Yarn is first and foremost a Node API that can be used programmatically (via @yarnpkg/core)
  • Yarn is written in TypeScript and is fully type-checked

Our supports

Gold sponsors

All your environment variables, in one place. Stop struggling with scattered API keys, hacking together home-brewed tools, and avoiding access controls. Keep your team and servers in sync with Doppler.
Your app, enterprise-ready. Start selling to enterprise customers with just a few lines of code. Add Single Sign-On (and more) in minutes instead of months with WorkOS.

But also

Datadog has been sponsoring the time of our lead maintainer for more than a year now. They also upgraded our account so that we can benefit from long-term telemetry (RFC).
SysGears also sponsored time from very early in the 2.x development. In particular, their strong investment is the reason why Yarn 2 supports node_modules installs even better than it used to.
Netlify has been the historical provider for our website. Each time we got issues, they jumped to our help. Their live previews have been super helpful in our development process.
Cloudflare has also been a historical partner. While we don't directly mirror the npm registry anymore, they still power our website to make its delivery as fast as possible.
Algolia contributed a lot to our documentation over the years. They still power the search engine we use on both versions of the documentation.

Installation

Consult the Installation Guide.

Migration

Consult the Migration Guide.

Documentation

The documentation can be found at yarnpkg.com.

API

The API documentation can be found at yarnpkg.com/api.

Current status

On top of our classic integration tests, we also run Yarn every day against the latest versions of the toolchains used by our community - just in case. Everything should be green!

Contributing

Consult the Contributing Guide.

Building your own bundle

Clone this repository, then run the following commands:

yarn build:cli

How it works

After building the CLI your global yarn will immediately start to reflect your local changes. This is because Yarn will pick up the yarnPath settings in this repository's .yarnrc.yml, which is configured to use the newly built CLI if available.

Works out of the box!

Note that no other command is needed! Given that our dependencies are checked-in within the repository (within the .yarn/cache directory), you don't even need to run yarn install. Everything just works right after cloning the project and is guaranteed to continue to work ten years from now 🙂

Yarn plugins

Default plugins

Those plugins typically come bundled with Yarn. You don't need to do anything special to use them.

Third-party plugins

Plugins can be developed by third-party entities. To use them within your applications, just specify the full plugin URL when calling yarn plugin import. Note that plugins aren't fetched from the npm registry at this time - they must be distributed as a single JavaScript file.

Creating a new plugin

To create your own plugin, please refer to the documentation.

Generic packages

The following packages are generic and can be used for a variety of purposes (including to implement other package managers, but not only):

Yarn packages

The following packages are meant to be used by Yarn itself, and probably won't be useful to other applications:

最近版本更新:(数据更新于 2024-10-06 21:14:33)

2024-09-14 20:52:51 @yarnpkg/cli/4.5.0

2024-08-24 22:50:25 @yarnpkg/cli/3.8.5

2024-08-24 20:57:54 @yarnpkg/cli/4.4.1

2024-08-05 23:27:58 @yarnpkg/cli/3.8.4

2024-08-03 05:53:57 @yarnpkg/cli/4.4.0

2024-06-21 23:31:21 @yarnpkg/cli/3.8.3

2024-06-21 14:50:53 @yarnpkg/cli/4.3.1

2024-06-11 02:50:46 @yarnpkg/cli/4.3.0

2024-05-09 01:48:51 @yarnpkg/cli/4.2.2

2024-05-03 01:48:33 @yarnpkg/cli/4.2.1

主题(topics):

javascript, nodejs, package-manager, yarn

yarnpkg/berry同语言 TypeScript最近更新仓库

2024-11-05 17:55:23 langgenius/dify

2024-11-05 11:52:31 RSSNext/Follow

2024-11-05 07:18:03 microsoft/genaiscript

2024-11-05 05:06:06 getmaxun/maxun

2024-11-04 14:44:09 x-extends/vxe-table

2024-11-04 13:16:10 lobehub/lobe-chat