We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ac09aa commit 1bf1f25Copy full SHA for 1bf1f25
1 file changed
src/lambdaisland/launchpad/shadow.clj
@@ -96,11 +96,11 @@
96
k
97
(keyword module-name (name k)))]
98
[build-id
99
- (assoc (update-build-keys process-root module-root v)
100
- :build-id build-id
101
- :js-options (if (= "" module-path)
102
- {}
103
- {:js-package-dirs [(str module-path "/node_modules")]}))])))
+ (cond-> (update-build-keys process-root module-root v)
+ true
+ (assoc :build-id build-id)
+ (not= "" module-path)
+ (update :js-options merge {:js-package-dirs [(str module-path "/node_modules")]}))])))
104
105
builds)))))
106
(assoc :deps {})
0 commit comments