]> git.openstreetmap.org Git - rails.git/commitdiff
Pass --ignore-engines to yarn
authorTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 18:17:13 +0000 (19:17 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 18:17:13 +0000 (19:17 +0100)
bin/yarn

index be76eec945cb9b8611a0a4e9885775a5421bac29..72c7b5d97601a8e6695d318f0a3ab7011e423580 100755 (executable)
--- a/bin/yarn
+++ b/bin/yarn
@@ -8,7 +8,7 @@ Dir.chdir(APP_ROOT) do
                     .find { |file| File.executable?(file) }
 
   if yarn
-    exec yarn, *ARGV
+    exec yarn, "--ignore-engines", *ARGV
   else
     warn "Yarn executable was not detected in the system."
     warn "Download Yarn at https://yarnpkg.com/en/docs/install"