---
title: "Discussion on \"Best Practices for TypeScript Monorepo\" | Hashnode"
description: "Discussion on \"Best Practices for TypeScript Monorepo\". Managing dependencies of multiple projects across multiple repositories can be time-consuming and error-prone. A monorepo, on the other hand, is a code management or architectural concept that consolidates all the isolated codebases of multiple proje..."
url: "https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Best Practices for TypeScript Monorepo](https://jpv-1649076767739.hashnode.dev/best-practices-for-typescript-monorepo?utm_source=hashnode&utm_medium=feed)

Managing dependencies of multiple projects across multiple repositories can be time-consuming and error-prone. A monorepo, on the other hand, is a code management or architectural concept that consolidates all the isolated codebases of multiple proje...

Aug 22, 2022 · 8 min read · jpv-1649076767739.hashnode.dev  
Read the article

-   [#monorepo](https://hashnode.com/tag/monorepo)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#developer](https://hashnode.com/tag/developer)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[David Herbert](https://hashnode.com/@DaveyHert)

@DaveyHert · Remote

  
[View profile](https://hashnode.com/@DaveyHert)

A Front-end Developer & Technical Writer

I’m a frontend developer who cares deeply about building websites that not only look good but feel effortless to use. I enjoy turning design ideas into clean, responsive, and intuitive interfaces using tools like React, Next.js, JavaScript, HTML, and CSS. My goal is always the same — create experiences that make users feel understood and help brands stand out for the right reasons. Alongside development, I’ve built a strong track record as a technical writer. I’ve written 50+ articles, tutorials, and product guides that simplify complex topics for developers and teams. Many of them rank on Google’s first page and are featured by leading tech companies — something I take real pride in. I’m driven by curiosity, clarity, and craft. Whether it’s refining a UI flow or breaking down a technical concept into something actionable, I care about getting the details right and delivering real value. If you’re looking for someone who blends strong frontend expertise with clear communication and technical storytelling — let’s connect.

## Responses 3

Markdown supported · ⌘↵ to post

[David Cardona](https://hashnode.com/@davidpccode)

[Dec 15, 2022](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/639b3eb3412a7e5bea6a0c1c)

Hello David. Thanks for this amazing article. I always have a big question about monorepo and its CICD workflow

The direct question is: Should I build and test all projects into the monorepo every time a merge on main/master/trunk occur? No matter if a projects doesn't change I will build and test, is it a good approach?

Why did this idea come to me? What happen if I merge into main a super feture which work and run perfectly on PR/MR but when run on main there was a small error in a yml file or some misconfigure file? The code was already merged but no one of the changes was deployed. So I fix the yml but non of the paths defined in change/rules (depends on the CI tool) where touched then nothing will de deployed… We cann’t just re run the last failed pipeline because it always checked out agains the old/failed commit..

There is no way to run the same projects that failed unless I touch some files (with empty spaces or enter or whatever change). IMO This is ugly.

So, an idea came up, what if I always build and test all projects on main . Somehow find the way to deploy those that was changed. Maybe a creating a docker-tag based on the digest-content and so avoid a rolling update, or use the changes/rules, or something else.

What do you think about this?

Thank you very much

[Franklin Okolie](https://hashnode.com/@developeraspire)

[Aug 22, 2022](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/6303479114c73b2c3b915556)

Amazing article, very detailed. Beautiful writing skills too. Thank you for this David.

[David Herbert](https://hashnode.com/@DaveyHert)

[Aug 23, 2022](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/6303479114c73b2c3b915556#reply-6304cab33f9519428cceb53e)

Lol, Thanks for all the hype Franklin :)

[Ravin](https://hashnode.com/@ravinwashere)

[Aug 22, 2022](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/63033d9114c73b2c3b9152ab)

Nice write up 👍👍

[David Herbert](https://hashnode.com/@DaveyHert)

[Aug 23, 2022](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/63033d9114c73b2c3b9152ab#reply-6304ca833f9519428cceb52a)

Thanks Ravin :)
