Using Typeconf in Monorepo
Learn how to set up and use Typeconf effectively in a monorepo environment
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:
Build your config package:
Using the config package in other projects
Now you can use your shared configurations in other packages within your monorepo:
CI/CD Considerations
-
Build Order:
-
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:
Was this page helpful?