Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for yarnpkg #162

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

WeepingClown13
Copy link

Debian and derivates have yarn packaged as yarnpkg. When cssbundling-rails run in such a system, it could not detect apt installed yarn currently, as the executable is named yarnpkg (since there was another yarn executable already). This PR adds the capability for cssbunding-rails to work with yarnpkg as well as yarn. ruby-cssbundling-rails package in debian is already shipped with this patch, and is it what the gitlab package utilizes to work with yarnpkg. Merging this would help with having to carry this patch downstream.

One caveat here is that since yarn and yarnpkg are not different except in names, they both use the same yarn.lock. This means there can't be a convenient "yarn.lock" => "yarn" detection available, but I believe it is worth the tradeoff. I am no ruby wizard, so it is possible that I have missed out on other details and/or checks, so review and inputs are much welcome.

Debian and derivates have yarn packaged as yarnpkg
@WeepingClown13
Copy link
Author

Maybe yarnpkg has to be moved to beforeyarn in the case statements to account for the scenarios where yarn and yarnpkg are both installed at a time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant