How to collect package usage
In a monorepo
- Run Pure Index with the
--collect-usages
flag
pure-index --collect-usages @my/ui-kit
- Depending on the project, you may need to configure Pure Index.
In different repositories
- Use the collectUsages function from JavaScript API.