Skip to content

Commit fbd3fea

Browse files
authored
Fix broken bin/importmap json command (rails#39)
1 parent 7aa75e4 commit fbd3fea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/importmap/commands.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def unpin(*packages)
4343

4444
desc "json", "Show the full importmap in json"
4545
def json
46+
require Rails.root.join("config/environment")
4647
puts Rails.application.importmap.to_json(resolver: ActionController::Base.helpers)
4748
end
4849

0 commit comments

Comments
 (0)