diff --git a/Dockerfile b/Dockerfile index ce489674cf7c7974b6ae3123a3d12398364e7ddf..fe1cea89a42a08dedd4974ac5439e3d17d3b49ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,7 @@ RUN apk -U upgrade \ && rm yarn.tar.gz \ && mv /tmp/src/yarn-v$YARN_VERSION /opt/yarn \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ + && ln -s /opt/yarn/bin/yarnpkg /usr/local/bin/yarnpkg \ && wget -O libiconv.tar.gz "https://ftp.gnu.org/pub/gnu/libiconv/libiconv-$LIBICONV_VERSION.tar.gz" \ && echo "$LIBICONV_DOWNLOAD_SHA256 *libiconv.tar.gz" | sha256sum -c - \ && tar -xzf libiconv.tar.gz -C /tmp/src \ diff --git a/bin/yarn b/bin/yarn index 8c1535a78f8f5efecbe8343ec5ea524b3b3ed35a..460dd565b4a3dd6c4cb028bc19d78a7c066d3ec8 100755 --- a/bin/yarn +++ b/bin/yarn @@ -2,7 +2,7 @@ APP_ROOT = File.expand_path('..', __dir__) Dir.chdir(APP_ROOT) do begin - exec "yarnpkg #{ARGV.join(' ')}" unless Dir.exist?('node_modules') + exec "yarnpkg", *ARGV rescue Errno::ENOENT $stderr.puts "Yarn executable was not detected in the system." $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"