-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: explicitly set our preferred package manager for js dependencies
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,16 @@ | |
# this will create a package.json for us | ||
run "rails shakapacker:install" | ||
|
||
# explicitly set our preferred package manager for external tooling | ||
File.write( | ||
"./package.json", | ||
JSON.generate( | ||
JSON.load_file("./package.json").tap 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", | ||
|