]> git.openstreetmap.org Git - chef.git/blob - 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
1 #!/bin/sh
2
3 <% if node[:lsb][:release].to_f < 22.04 -%>
4 exec /usr/bin/yarnpkg --ignore-engines "$@"
5 <% else -%>
6 exec /usr/bin/yarnpkg "$@"
7 <% end -%>