docs(packages): an index of the packages; the pack skips what is not a package directory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 07:22:05 +03:00
parent a5f52c4581
commit e146c7a337
2 changed files with 53 additions and 0 deletions

View file

@ -395,6 +395,7 @@ function pack_add_packages(l: PackList) -> void {
i = i + slen(line) + 1
let mod = s_trim(line)
if slen(mod) == 0 { continue }
if not shq(`test -d {base}/{mod}`) { continue } # packages/README.md is an index, not a package
pack_gather_pkg(l, base, mod)
}
}