Function
resolveEntryPoint
(name: string, dir: string)
Source from the content-addressed store, hash-verified
| 48 | } |
| 49 | |
| 50 | const resolveEntryPoint = (name: string, dir: string): EntryPoint => { |
| 51 | let entrypoint: string | undefined |
| 52 | try { |
| 53 | entrypoint = typeof Bun !== "undefined" ? import.meta.resolve(name, dir) : import.meta.resolve(dir) |
| 54 | } catch { |
| 55 | entrypoint = undefined |
| 56 | } |
| 57 | return { |
| 58 | directory: dir, |
| 59 | entrypoint, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | interface ArboristNode { |
| 64 | name: string |
Tested by
no test coverage detected