- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 33.7k
 
deps: add Yarn 1.22.5 #37277
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
          
     Closed
      
      
    
  
     Closed
                    deps: add Yarn 1.22.5 #37277
Changes from 2 commits
      Commits
    
    
            Show all changes
          
          
            3 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| BSD 2-Clause License | ||
| 
     | 
||
| For Yarn software | ||
| 
     | 
||
| Copyright (c) 2016-present, Yarn Contributors. All rights reserved. | ||
| 
     | 
||
| Redistribution and use in source and binary forms, with or without modification, | ||
| are permitted provided that the following conditions are met: | ||
| 
     | 
||
| * Redistributions of source code must retain the above copyright notice, this | ||
| list of conditions and the following disclaimer. | ||
| 
     | 
||
| * Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
| 
     | 
||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
| ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
| (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
| ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <p align="center"> | ||
| <a href="https://yarnpkg.com/"> | ||
| <img alt="Yarn" src="https://github.com/yarnpkg/assets/blob/master/yarn-kitten-full.png?raw=true" width="546"> | ||
| </a> | ||
| </p> | ||
| 
     | 
||
| <p align="center"> | ||
| Fast, reliable, and secure dependency management. | ||
| </p> | ||
| 
     | 
||
| <p align="center"> | ||
| <a href="https://circleci.com/gh/yarnpkg/yarn"><img alt="Circle Status" src="https://circleci.com/gh/yarnpkg/yarn.svg?style=shield&circle-token=5f0a78473b0f440afb218bf2b82323cc6b3cb43f"></a> | ||
| <a href="https://ci.appveyor.com/project/kittens/yarn/branch/master"><img alt="Appveyor Status" src="https://ci.appveyor.com/api/projects/status/0xdv8chwe2kmk463?svg=true"></a> | ||
| <a href="https://dev.azure.com/yarnpkg/yarn/_build"><img alt="Azure Pipelines status" src="https://dev.azure.com/yarnpkg/yarn/_apis/build/status/Yarn%20Acceptance%20Tests"></a> | ||
| <a href="https://discord.gg/yarnpkg"><img alt="Discord Chat" src="https://img.shields.io/discord/226791405589233664.svg"></a> | ||
| <a href="http://commitizen.github.io/cz-cli/"><img alt="Commitizen friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg"></a> | ||
| </p> | ||
| 
     | 
||
| --- | ||
| 
     | 
||
| **Fast:** Yarn caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs. | ||
| 
     | 
||
| **Reliable:** Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarn is able to guarantee that any installation that works on one system will work exactly the same on another system. | ||
| 
     | 
||
| **Secure:** Yarn uses checksums to verify the integrity of every installed package before its code is executed. | ||
| 
     | 
||
| ## Features | ||
| 
     | 
||
| * **Offline Mode.** If you've installed a package before, then you can install it again without an internet connection. | ||
| * **Deterministic.** The same dependencies will be installed in the same exact way on any machine, regardless of installation order. | ||
| * **Network Performance.** Yarn efficiently queues requests and avoids request waterfalls in order to maximize network utilization. | ||
| * **Network Resilience.** A single request that fails will not cause the entire installation to fail. Requests are automatically retried upon failure. | ||
| * **Flat Mode.** Yarn resolves mismatched versions of dependencies to a single version to avoid creating duplicates. | ||
| * **More emojis.** 🐈 | ||
| 
     | 
||
| ## Installing Yarn | ||
| 
     | 
||
| Read the [Installation Guide](https://yarnpkg.com/en/docs/install) on our website for detailed instructions on how to install Yarn. | ||
| 
     | 
||
| ## Using Yarn | ||
| 
     | 
||
| Read the [Usage Guide](https://yarnpkg.com/en/docs/usage) on our website for detailed instructions on how to use Yarn. | ||
| 
     | 
||
| ## Contributing to Yarn | ||
| 
     | 
||
| Contributions are always welcome, no matter how large or small. Substantial feature requests should be proposed as an [RFC](https://github.com/yarnpkg/rfcs). Before contributing, please read the [code of conduct](CODE_OF_CONDUCT.md). | ||
| 
     | 
||
| See [Contributing](https://yarnpkg.com/org/contributing/). | ||
| 
     | 
||
| ## Prior art | ||
| 
     | 
||
| Yarn wouldn't exist if it wasn't for excellent prior art. Yarn has been inspired by the following projects: | ||
| 
     | 
||
| - [Bundler](https://github.com/bundler/bundler) | ||
| - [Cargo](https://github.com/rust-lang/cargo) | ||
| - [npm](https://github.com/npm/cli) | ||
| 
     | 
||
| ## Credits | ||
| 
     | 
||
| Thanks to [Sam Holmes](https://github.com/samholmes) for donating the npm package name! | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/sh | ||
| argv0=$(echo "$0" | sed -e 's,\\,/,g') | ||
| basedir=$(dirname "$(readlink "$0" || echo "$argv0")") | ||
| 
     | 
||
| case "$(uname -s)" in | ||
| Darwin) basedir="$( cd "$( dirname "$argv0" )" && pwd )";; | ||
| Linux) basedir=$(dirname "$(readlink -f "$0" || echo "$argv0")");; | ||
| *CYGWIN*) basedir=`cygpath -w "$basedir"`;; | ||
| *MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
| esac | ||
| 
     | 
||
| command_exists() { | ||
| command -v "$1" >/dev/null 2>&1; | ||
| } | ||
| 
     | 
||
| if command_exists node; then | ||
| if [ "$YARN_FORCE_WINPTY" = 1 ] || command_exists winpty && test -t 1; then | ||
| winpty node "$basedir/node_modules/yarn/bin/yarn.js" "$@" | ||
| else | ||
| exec node "$basedir/node_modules/yarn/bin/yarn.js" "$@" | ||
| fi | ||
| ret=$? | ||
| # Debian and Ubuntu use "nodejs" as the name of the binary, not "node", so we | ||
| # search for that too. See: | ||
| # https://lists.debian.org/debian-devel-announce/2012/07/msg00002.html | ||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614907 | ||
| elif command_exists nodejs; then | ||
| exec nodejs "$basedir/node_modules/yarn/bin/yarn.js" "$@" | ||
| ret=$? | ||
| else | ||
| >&2 echo 'Yarn requires Node.js 4.0 or higher to be installed.' | ||
| ret=1 | ||
| fi | ||
| 
     | 
||
| exit $ret | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @echo off | ||
| node "%~dp0\node_modules\yarn\bin\yarn.js" %* | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/usr/bin/env node | ||
| 
     | 
||
| /* eslint-disable no-var */ | ||
| /* eslint-disable flowtype/require-valid-file-annotation */ | ||
| 'use strict'; | ||
| 
     | 
||
| var ver = process.versions.node; | ||
| var majorVer = parseInt(ver.split('.')[0], 10); | ||
| 
     | 
||
| if (majorVer < 4) { | ||
| console.error('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.'); | ||
| process.exit(1); // eslint-disable-line no-process-exit | ||
| } else { | ||
| try { | ||
| require(__dirname + '/../lib/v8-compile-cache.js'); | ||
| } catch (err) { | ||
| // We don't have/need this on legacy builds and dev builds | ||
| } | ||
| 
     | 
||
| // Just requiring this package will trigger a yarn run since the | ||
| // `require.main === module` check inside `cli/index.js` will always | ||
| // be truthy when built with webpack :( | ||
| // `lib/cli` may be `lib/cli/index.js` or `lib/cli.js` depending on the build. | ||
| var cli = require(__dirname + '/../lib/cli'); | ||
| if (!cli.autoRun) { | ||
| cli.default().catch(function(error) { | ||
| console.error(error.stack || error.message || error); | ||
| process.exitCode = 1; | ||
| }); | ||
| } | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/usr/bin/env node | ||
| require('./yarn.js'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @echo off | ||
| "%~dp0\yarn.cmd" %* | 
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.