From 4ea211be5cfa85fcb9a314efc575ddb4e47bb4d8 Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Fri, 11 Oct 2024 15:37:27 -0700 Subject: [PATCH] Correct pristine command description and args --- 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