File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def pin(*packages)
16
16
if imports = packager . import ( *packages , env : options [ :env ] , from : options [ :from ] )
17
17
imports . each do |package , url |
18
18
if options [ :download ]
19
- puts %(Pinning "#{ package } " to vendor /#{ package } .js via download from #{ url } )
19
+ puts %(Pinning "#{ package } " to #{ packager . vendor_path } /#{ package } .js via download from #{ url } )
20
20
packager . download ( package , url )
21
21
pin = packager . vendored_pin_for ( package , url )
22
22
else
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class Importmap::Packager
10
10
singleton_class . attr_accessor :endpoint
11
11
self . endpoint = URI ( "https://api.jspm.io/generate" )
12
12
13
+ attr_reader :vendor_path
14
+
13
15
def initialize ( importmap_path = "config/importmap.rb" , vendor_path : "vendor/javascript" )
14
16
@importmap_path = Pathname . new ( importmap_path )
15
17
@vendor_path = Pathname . new ( vendor_path )
You can’t perform that action at this time.
0 commit comments