---
title: "Discussion on \"Sharing a custom common library to NextJS and React Apps, using Typescript with Yarn workspaces\" | Hashnode"
description: "Discussion on \"Sharing a custom common library to NextJS and React Apps, using Typescript with Yarn workspaces\". This approach has served Google well for more than 16 years, and today the vast majority of Google's software assets continue to be stored in a single, shared repository.\n See Figure 1. \n\nThis blog post will be part of another series. 🚀 \nLet's be ho..."
url: "https://hashnode.com/posts/sharing-a-custom-common-library-to-nextjs-and-react-apps-using-typescript-with-yarn-workspaces/602bf0e74bb9c4083f0279ab"
---

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

Discussion

# [Sharing a custom common library to NextJS and React Apps, using Typescript with Yarn workspaces](https://hashnode.com/post/sharing-a-custom-common-library-to-nextjs-and-react-apps-using-typescript-with-yarn-workspaces?utm_source=hashnode&utm_medium=feed)

This approach has served Google well for more than 16 years, and today the vast majority of Google's software assets continue to be stored in a single, shared repository. See Figure 1. This blog post will be part of another series. 🚀 Let's be ho...

Feb 16, 2021 · 11 min read · hashnode.com  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#yarn](https://hashnode.com/tag/yarn)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Alejandro Soto](https://hashnode.com/@asotog)

@asotog

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

Developer

I am a developer from Costa Rica, who likes hamburguers, listens music, father of 2...

## Responses 1

Markdown supported · ⌘↵ to post

[Saurish Kar](https://hashnode.com/@saurishkar)

[Oct 19, 2021](https://hashnode.com/posts/sharing-a-custom-common-library-to-nextjs-and-react-apps-using-typescript-with-yarn-workspaces/602bf0e74bb9c4083f0279ab/comment/616f2ddaf1f4c944cc6b57c0)

Interesting article [Alejandro Soto](https://hashnode.com/@asotog)

**Question:** How is the deployment configuration handled for a monorepo. I assume builds are created separately for each app or does it get built on the whole workspace ?

[Alejandro Soto](https://hashnode.com/@asotog)

[Oct 21, 2021](https://hashnode.com/posts/sharing-a-custom-common-library-to-nextjs-and-react-apps-using-typescript-with-yarn-workspaces/602bf0e74bb9c4083f0279ab/comment/616f2ddaf1f4c944cc6b57c0#reply-617193d60f452c1cd94f6e2c)

yaeh builds can be done separately for each app
