--- yarn-v1.22.19/bin/yarn.cmd	2022-05-10 21:40:03.000000000 +0200
+++ yarn-v1.22.19/bin/yarn.cmd	2022-11-27 10:31:14.000000000 +0100
@@ -1,2 +1,2 @@
 @echo off
-node "%~dp0\yarn.js" %*
+node "%~dp0\\..\lib\node_modules\yarn\bin\yarn.js" %*
--- yarn-v1.22.19/bin/yarn	2022-05-10 21:40:03.000000000 +0200
+++ yarn-v1.22.19/bin/yarn	2022-11-27 10:31:14.000000000 +0100
@@ -15,9 +15,9 @@
 
 if command_exists node; then
   if [ "$YARN_FORCE_WINPTY" = 1 ] || command_exists winpty && test -t 1; then
-    winpty node "$basedir/yarn.js" "$@"
+    winpty node "$basedir/../lib/node_modules/yarn/bin/yarn.js" "$@"
   else
-    exec node "$basedir/yarn.js" "$@"
+    exec node "$basedir/../lib/node_modules/yarn/bin/yarn.js" "$@"
   fi
   ret=$?
 # Debian and Ubuntu use "nodejs" as the name of the binary, not "node", so we
@@ -25,7 +25,7 @@
 # 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/yarn.js" "$@"
+  exec nodejs "$basedir/../lib/node_modules/yarn/bin/yarn.js" "$@"
   ret=$?
 else
   >&2 echo 'Yarn requires Node.js 4.0 or higher to be installed.'
--- yarn-v1.22.19/bin/yarnpkg	2022-05-10 21:40:03.000000000 +0200
+++ yarn-v1.22.19/bin/yarnpkg	2022-11-27 10:31:14.000000000 +0100
@@ -1,2 +1,2 @@
 #!/usr/bin/env node
-require('./yarn.js');
+require('../lib/node_modules/yarn/bin/yarn.js');
