Resolve imports from external dependencies

Make sure to create the .omletrc.json file in the root directory of your repository before getting started.

If your design system library is used in your application repositories as an external package, you can define the exports property to tell the CLI where the entry points of a package correspond in the source code. Such as:

.omletrc.json
{
  "exports": {
    ".": "src/index.ts"
  }
}

If you have a monorepo, you can define package-specific exports configurations using the workspaces field.

.omletrc.json
{
  "workspaces": {
    "@acme/design-system": {
      "exports": {
        ".": "./src/index.ts",
      }
    }
  }
}

You can check the Config file documentation to learn more about the exports property.

Last updated