diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ea7700659..33e8693268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa [#6562](https://github.com/yarnpkg/yarn/pull/6562) - [**Bertrand Marron**](https://github.com/tusbar) +- Fixes Yarn invocations on Darwin when the `yarn` binary was symlinked + + [#6568](https://github.com/yarnpkg/yarn/pull/6568) - [**Hidde Boomsma**](https://github.com/hboomsma) + - Fixes `require.resolve` when used together with the `paths` option [#6565](https://github.com/yarnpkg/yarn/pull/6565) - [**Maƫl Nison**](https://twitter.com/arcanis) diff --git a/bin/yarn b/bin/yarn index a2264cd04e..35ad5177ff 100755 --- a/bin/yarn +++ b/bin/yarn @@ -3,6 +3,7 @@ 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"`;;