File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11861186 (- (count (.split #"\r ?\n " fdeps-str -1 )) 1 )
11871187 0 )})))))))
11881188
1189- (defn lib-rel-path [{:keys [lib-path url] :as ijs}]
1190- (if (.endsWith lib-path " .js" )
1191- (util/get-name url)
1192- (let [path (util/path url)]
1193- (string/replace
1194- path
1195- (str (io/file (System/getProperty " user.dir" ) lib-path) File/separator)
1196- " " ))))
1189+ (defn lib-rel-path [{:keys [lib-path url provides] :as ijs}]
1190+ (if (nil? lib-path)
1191+ (str (string/replace (first provides) #"\. " File/separator) " .js" )
1192+ (if (.endsWith lib-path " .js" )
1193+ (util/get-name url)
1194+ (let [path (util/path url)]
1195+ (string/replace
1196+ path
1197+ (str (io/file (System/getProperty " user.dir" ) lib-path) File/separator)
1198+ " " )))))
11971199
11981200(defn ^String rel-output-path
11991201 " Given an IJavaScript which is either in memory, in a jar file,
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ JavaScript library containing provide/require 'declarations'."
308308 io/resource)]
309309 (let [{:keys [provides] :as lib-info} (library-graph-node lib-resource)]
310310 (if (some #{(name lib)} provides)
311- lib-info
311+ ( assoc lib-info :closure-lib true )
312312 (binding [*out* *err*]
313313 (println
314314 (format
You can’t perform that action at this time.
0 commit comments