Skip to content

Commit

Permalink
Correct pristine command description and args
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde committed Oct 11, 2024
1 parent f273945 commit 4ea211b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/importmap/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def unpin(*packages)
end
end

desc "pristine [*PACKAGES]", "Redownload all pinned packages"
desc "pristine", "Redownload all pinned packages"
option :env, type: :string, aliases: :e, default: "production"
option :from, type: :string, aliases: :f, default: "jspm"
def pristine(*packages)
def pristine
packages = npm.packages_with_versions.map do |p, v|
v.blank? ? p : [p, v].join("@")
end
Expand Down

0 comments on commit 4ea211b

Please # to comment.