]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/templates/default/yarn.erb
Don't pass --ignore-engines to yarn in Ubuntu 22.04
[chef.git] / 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 -%>