diff --git a/src/nimble.nim b/src/nimble.nim index 383839b8..1d662f21 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -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) =