stacklit icon indicating copy to clipboard operation
stacklit copied to clipboard

Config file for custom scan roots

Open thegdsks opened this issue 7 months ago • 1 comments

Right now stacklit scans from the current directory. For monorepos or projects with non-standard layouts, it would be useful to define scan roots in a config file.

Something like a .stacklit.yaml:

roots: - services/api - services/worker - packages/shared

Each root gets its own section in the output. The dependency graph still connects them but the file tree is scoped per root.

Related to the monorepo discussion: https://github.com/glincker/stacklit/discussions/23

thegdsks avatar Apr 16 '26 04:04 thegdsks

Fixed in #38. .stacklitrc.json now takes roots, include and exclude (gitignore style globs). Root and nested .gitignore files and .stacklitignore are honoured, and a root that escapes the repo is rejected. See USAGE.md for the full list of keys and the STACKLIT_* env overrides.

thegdsks avatar Nov 08 '26 19:11 thegdsks