Skip to main content
This guide will walk you through setting up and using Typeconf in a monorepo environment, where you can define your configurations in a shared package and use them across multiple projects. The whole process is similar to our quickstart guide, because with the monorepo setup you can just use a separate configuration package and share it across your projects.

Setting Up the Config Package

First, create a new package in your monorepo for your shared configurations:

Defining Shared Configurations

Create your configuration definitions in the config package:
Create values file for your config (you can create multiple configs or choose a different name):
Build your config package:

Using the config package in other projects

Install SDK:
Now you can use your shared configurations in other packages within your monorepo:

CI/CD Considerations

  1. Build Order:
    • Ensure config package is built before dependent packages
    • Use tools like Turborepo or Nx for efficient builds
  2. Validation:
    • Add a CI step to build configuration before other packages
    • Check for breaking changes in config updates
Here’s an example Github Actions workflow to update config: