TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I Love Monorepos–Except When They Are Annoying

3 pointsby bretc2 months ago

2 comments

turtleyacht2 months ago
Some lessons from monorepos:<p>Node Version Manager (nvm) with .nvmrc helps local conformance to a specific version of Node.js.<p>It&#x27;s a chore to discover inter-repo dependencies, like utils&#x2F; depends on a&#x2F; and b&#x2F;; it&#x27;s a good thing to add to the docs.<p>`npm pack` with `file:&#x2F;absolute&#x2F;path&#x2F;to.tgz` may be easier to reason about than linking. (Be sure to substitute with the real [or future] version before committing.)<p>After changing a common&#x2F; package, we have to merge one library, <i>wait</i> for it to publish, and then consume that new version in the next lib(s). So then the PRs have to happen in sequence and block other changes (or rebase accordingly).<p>If on Github, traversing to older commits (click Blame on package.json) really helps figure which version supported the older framework or dependencies you need to keep.
theamk2 months ago
Note: this is all about JS monorepos, and it looks like most complains are about kinds which &quot;develop and publish multiple npm packages from a single git repository&quot;<p>I am not a JS programmer, so all the monorepo complaints seem pretty alien to me. They don&#x27;t really apply to C++&#x2F;Python monorepos I am familiar with.