Adds babel spec support for path action.
This commit is contained in:
parent
a778b0f860
commit
7384083f0f
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue