Config file
Learn more about the CLI configuration and their use cases.
The config file enables you to customize the scanning process. You can define include
and ignore
properties to designate which directories to scan and utilize exports
and aliases
properties to let the CLI resolve the correct entry points and recognize the aliases to ensure data accuracy.
Locating the config file
The configuration file for the CLI can be placed in the following locations:
An
omlet
property in thepackage.json
file.An
.omletrc
file in JSON or YAML format in the root directory of your repositoryAn
.omletrc.json
,.omletrc.yaml
,.omletrc.yml
, or.omletrc.js
file in the root directory of your repository
Alternatively, you can also specify a custom configuration file name and location using the --config
option in the CLI command:
npx @omlet/cli analyze --config './path/file'
Properties
The configuration file can include the following properties:
Next steps
Below are the docs explaining the most common use cases for the config file.
Last updated