shlogg · Early preview
Denis Sirashev @6akcuk

Monorepo Integration With PNPM And TypeScript: A Step-by-Step Guide

Create a publ bot in a monorepo with PNPM: Create a new package, implement combineTexts function, update dependencies & code, configure TypeScript settings & build the app using PNPM.

Introduction

You have two variants of code organization for your projects: 

Keep the project's code in different repositories like a polyrepo;
Keep everything in one single monorepo.

They are all good, and it is up to you which one is the best fit for your projects. A polyrepo is the current standard way of developing applications. You have multiple teams, each with its repo with build artifacts and pipelines. They have autonomy. It is their own decision about libraries to use, how to deploy, and who can contribute.
The opposite way is to have a monorepo. You split your projects into applic...