diff --git a/lib/importmap/commands.rb b/lib/importmap/commands.rb index f3a836b..fd2d9c1 100644 --- a/lib/importmap/commands.rb +++ b/lib/importmap/commands.rb @@ -91,6 +91,11 @@ def outdated end end + desc "update", "Update outdated package pins" + def update + pin npm.outdated_packages.map(&:name) + end + desc "packages", "Print out packages with version numbers" def packages puts npm.packages_with_versions.map { |x| x.join(' ') }