Skip to content
Closed
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
7 changes: 7 additions & 0 deletions lib/importmap/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def unpin(*packages)
end
end

desc "redownload", "Force download every package, even if the required versions are already downloaded"
def redownload
packages = npm.packages_with_versions.map { |package| package.join("@") }

pin packages
end

desc "json", "Show the full importmap in json"
def json
require Rails.root.join("config/environment")
Expand Down