From f588506eebc7b276f8b3539301633f93d2bda55d Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Fri, 11 Oct 2024 15:41:54 -0700 Subject: [PATCH] Correct pristine command description and args (#272) --- lib/importmap/commands.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/importmap/commands.rb b/lib/importmap/commands.rb index e5d9b9d..0a6fbec 100644 --- a/lib/importmap/commands.rb +++ b/lib/importmap/commands.rb @@ -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