Skip to content

Commit

Permalink
fix: explicitly set our preferred package manager for js dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 26, 2024
1 parent c6801a5 commit c24e2bf
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit c24e2bf

Please sign in to comment.