Skip to content

Commit

Permalink
Automatically adds binaries to entryPoints (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez authored Jun 27, 2024
1 parent 78debc8 commit be2f130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nimble.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,8 @@ proc getEntryPoints(pkgInfo: PackageInfo, options: Options): seq[string] =
## This is useful for tools like the lsp.
let main = pkgInfo.srcDir / pkgInfo.basicInfo.name & ".nim"
result.add main
for entry in pkgInfo.entryPoints:
let entries = pkgInfo.entryPoints & pkgInfo.bin.keys.toSeq
for entry in entries:
result.add if entry.endsWith(".nim"): entry else: entry & ".nim"

proc dump(options: Options) =
Expand Down

0 comments on commit be2f130

Please sign in to comment.