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:
commit
28f4c9ddd6
1 changed files with 5 additions and 2 deletions
|
|
@ -665,8 +665,11 @@ proc listPaths(options: TOptions) =
|
||||||
if kind != pcDir or not path.startsWith(options.getPkgsDir / name):
|
if kind != pcDir or not path.startsWith(options.getPkgsDir / name):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
let nimbleFile = path / name.addFileExt("nimble")
|
let
|
||||||
if existsFile(nimbleFile):
|
babelFile = path / name.addFileExt("babel")
|
||||||
|
nimbleFile = path / name.addFileExt("nimble")
|
||||||
|
hasSpec = nimbleFile.existsFile or babelFile.existsFile
|
||||||
|
if hasSpec:
|
||||||
var pkgInfo = getPkgInfo(path)
|
var pkgInfo = getPkgInfo(path)
|
||||||
var v: VersionAndPath
|
var v: VersionAndPath
|
||||||
v.version = newVersion(pkgInfo.version)
|
v.version = newVersion(pkgInfo.version)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue