Skip to main content
🧙‍♂️ refine grants your wishes! Please give us a ⭐️ on GitHub to keep the magic going.
Version: 4.xx.xx

Monorepo with Lerna

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. In this example, you'll see how to use Lerna to setup a monorepo with refine.

If you're going to use refine in your monorepo setup or create one from scratch, you can use this example as a starting point.

Run on your local
npm create refine-app@latest -- --example monorepo-with-lerna

Using bootstrap

Lerna provides a bootstrap command that links packages together. This is useful when you want to use packages from the same monorepo in your application before publishing them to a registry.

In this example, you'll find a basic setup of lerna using the bootstrap command.

Run on your local
npm create refine-app@latest -- --example monorepo-with-lerna-bootstrap