Printable idea sheet
configuration_location
reqlan rq/extension/host/configuration.rq:3
Katz 0.190
An optional `.reqlan/config.json` may appear under a base's `.reqlan` directory.
For a given `.rq` file, the applying base is the nearest ancestor directory that owns a `.reqlan` folder.
The applying config is that base's `.reqlan/config.json` when present.
If the owning base has no `config.json`, or no owning base is found, defaults from configuration_import_roots apply.
A child base does not inherit a parent base's config.
- implementation
- reqlan-path-resolve.ts, path_resolve.rs
- tests
- config.test.ts:returns undefined when no config exists, config.test.ts:loads config from the owning base .reqlan, config.test.ts:loads config from an ancestor base, config.test.ts:nearest base config wins over farther ones, config.test.ts:owning base without config does not inherit parent, config.test.ts:resolveRqConfig uses defaults when no applying file exists, path-resolve.test.ts:loads importRoots list from nearest base config, path_resolve.rs:missing_import_roots_uses_default_alias, path_resolve.rs:relative_root_resolves_against_base
Interactive page: configuration_location