Skip to content

Commit

Permalink
spike basic update command. (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Geisel <micah@botandrose.com>
  • Loading branch information
botandrose and botandrose-machine authored Jan 3, 2024
1 parent 25e9166 commit 9b379c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/importmap/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ') }
Expand Down

0 comments on commit 9b379c0

Please sign in to comment.