Skip to content

Commit be2f130

Browse files
authored
Automatically adds binaries to entryPoints (#1230)
1 parent 78debc8 commit be2f130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nimble.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,8 @@ proc getEntryPoints(pkgInfo: PackageInfo, options: Options): seq[string] =
11701170
## This is useful for tools like the lsp.
11711171
let main = pkgInfo.srcDir / pkgInfo.basicInfo.name & ".nim"
11721172
result.add main
1173-
for entry in pkgInfo.entryPoints:
1173+
let entries = pkgInfo.entryPoints & pkgInfo.bin.keys.toSeq
1174+
for entry in entries:
11741175
result.add if entry.endsWith(".nim"): entry else: entry & ".nim"
11751176

11761177
proc dump(options: Options) =

0 commit comments

Comments
 (0)