Skip to content

Commit 9b379c0

Browse files
spike basic update command. (#214)
Co-authored-by: Micah Geisel <[email protected]>
1 parent 25e9166 commit 9b379c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/importmap/commands.rb

+5
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def outdated
9191
end
9292
end
9393

94+
desc "update", "Update outdated package pins"
95+
def update
96+
pin npm.outdated_packages.map(&:name)
97+
end
98+
9499
desc "packages", "Print out packages with version numbers"
95100
def packages
96101
puts npm.packages_with_versions.map { |x| x.join(' ') }

0 commit comments

Comments
 (0)