![]() And, in Visual Studio Code, we can jump between packages while editing. The benefit of (2) is that it’s easier to keep the packages in sync: We can install and build all packages at the same time. We can keep all packages in a single repository and publish them to npm from there.We can keep the packages in separate repositories and publish them to npm separately.Whenever we have to develop multiple interdependent npm packages in parallel, we have two options: What is a monorepo and why is it useful? # Tip: What to do when Visual Studio Code doesn’t see changes in another package.A better solution: npm workspaces and TypeScript project references.My first failed attempt: local path installations.My use case for a monorepo: static site generation.What is a monorepo and why is it useful?.All we need is already built into npm and TypeScript. In this blog post, we’ll explore how to set up a simple monorepo for two npm packages. A monorepo is a single repository that is used to manage multiple projects.
0 Comments
Leave a Reply. |