Config file
Learn more about the CLI configuration and their use cases.
Last updated
Learn more about the CLI configuration and their use cases.
Last updated
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.
The configuration file for the CLI can be placed in the following locations:
An omlet
property in the package.json
file.
An .omletrc
file in JSON or YAML format in the root directory of your repository
An .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:
The configuration file can include the following properties:
Below are the docs explaining the most common use cases for the config file.
You can learn more about the include
property .
You can learn more about the ignore
property .
You can learn more about the exports
property .
This structure is adopted from the paths
property in tsconfig
. For more in-depth information, please refer to the .
You can learn more about the aliases
property .
If you think your component data in Omlet is inaccurate or if you see data issues on the Web app, you might need to set exports
and/or aliases
. Learn more .