Skip to content

Commit

Permalink
Resolve package.json before defautling to index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Jun 22, 2023
1 parent 955fd50 commit c7b5f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portal/runtime/npm.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
(or
(fs/is-file path)
(fs/is-file (str path ".js"))
(fs/is-file (str path "/index.js"))
(package-resolve path))))
(package-resolve path)
(fs/is-file (fs/join path "index.js")))))
search-paths)
(throw
(ex-info (str "Unable to find node module: " (pr-str module))
Expand Down

0 comments on commit c7b5f0f

Please sign in to comment.