]> git.openstreetmap.org Git - chef.git/commitdiff
Revert "Use --ignore-engines when installing node modules with yarn"
authorTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 18:14:43 +0000 (19:14 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 18:14:43 +0000 (19:14 +0100)
This reverts commit c95478046eb46f37cd94e7459d4e8adf1d70b7c7.

cookbooks/web/resources/rails_port.rb

index 564cbd0adf1cd5e8498ebe40b5054f4fde649eca..16fde7131cc1e76758202521edb8f9afb25f0f8c 100644 (file)
@@ -407,7 +407,7 @@ action :create do
 
   execute "#{rails_directory}/package.json" do
     action :nothing
-    command "yarnpkg install --ignore-engines"
+    command "bundle#{new_resource.ruby} exec rake yarn:install"
     environment "HOME" => rails_directory,
                 "RAILS_ENV" => "production"
     cwd rails_directory