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

fix: explicitly set our preferred package manager for js dependencies #528

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions variants/frontend-base/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# this will create a package.json for us
run "rails shakapacker:install"

# explicitly set our preferred package manager for external tooling
update_package_json do |package_json|
package_json["packageManager"] = "[email protected]"
end

# this is added by shakapacker:install, but we've already got one (with some extra tags)
# in our template, so remove theirs otherwise the app will error when rendering this
gsub_file "app/views/layouts/application.html.erb",
Expand Down
Loading