def packages

bolt@1.27.0.0 · src/lint/plan.bend:251

import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/rules/imports.bend as Imports

251# each package root as the project rules take it: its directory as a digest
252# names one (`w3c/`)
253def packages(rs: List<&2, String>) -> List<&2, String>:
254  match rs:
255    case Nil{}:
256      Nil{}
257    case Con{r, rest}:
258      Imports.dir_of(r ++ "/main.bend") <> packages(rest)

Uses (4)

Used by (1)