]> git.openstreetmap.org Git - chef.git/commitdiff
Don't pass --ignore-engines to yarn in Ubuntu 22.04
authorTom Hughes <tom@compton.nu>
Sat, 2 Jul 2022 10:56:35 +0000 (11:56 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 2 Jul 2022 16:07:12 +0000 (17:07 +0100)
cookbooks/nodejs/templates/default/yarn.erb

index b9d3b4efd0542a5387dad434fc65d21d4f1644c8..ed0b15f04897f106c808cdcb05c7f9da44204795 100644 (file)
@@ -1,3 +1,7 @@
 #!/bin/sh
 
+<% if node[:lsb][:release].to_f < 22.04 -%>
 exec /usr/bin/yarnpkg --ignore-engines "$@"
+<% else -%>
+exec /usr/bin/yarnpkg "$@"
+<% end -%>