From 7384083f0f8e4960272be438042f01f08ddd991a Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Fri, 5 Dec 2014 20:46:26 +0100 Subject: [PATCH] Adds babel spec support for path action. --- src/nimble.nim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nimble.nim b/src/nimble.nim index 5657951..4209519 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -663,8 +663,11 @@ proc listPaths(options: TOptions) = if kind != pcDir or not path.startsWith(options.getPkgsDir / name): continue - let nimbleFile = path / name.addFileExt("nimble") - if existsFile(nimbleFile): + let + babelFile = path / name.addFileExt("babel") + nimbleFile = path / name.addFileExt("nimble") + hasSpec = nimbleFile.existsFile or babelFile.existsFile + if hasSpec: var pkgInfo = getPkgInfo(path) var v: VersionAndPath v.version = newVersion(pkgInfo.version)