Merge pull request #72 from gradha/pr_supports_babel_spec_for_path_action

Adds babel spec support for path action.
This commit is contained in:
Dominik Picheta 2014-12-06 17:25:15 +00:00
commit 28f4c9ddd6

View file

@ -665,8 +665,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)