From a8eb40df8e5bbeb58b3bb1dfbfe44454532b2d53 Mon Sep 17 00:00:00 2001 From: jmgomez Date: Thu, 27 Jun 2024 15:57:37 +0100 Subject: [PATCH] Automatically adds binaries to entryPoints --- src/nimble.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) =