Typescript Monorepo with NPM workspaces - Dmitry Kudryavtsev
yieldcode.blog · 1,357 words · saved by 1 readers
During the development of my recent project, I decided to split some components to their own packages, and used npm workspaces for that.
During the development of my recent project (more info on my website ), I wanted to make it more modular. It consists of 3 main components: api which is the API server; a process that is responsible for RSS feed discovery called observer ; and a process responsible for sending out emails called distributor . They all depend on a database. I wanted all of them be independent executables. Using a monorepo for such use case, is great. But settings up dependencies between them, is complicated. Luckily, npm 7 has support for workspaces, which simplify the management of monorepos. Not only that, but
related reading
- Set up a monorepo using pnpm workspace - DEV Communitydev.to
- Bulletproof node.js project architecture 🛡️softwareontheroad.com
- How I structure Express appskentcdodds.com
- Build your own Reactpomb.us
- How to write a production-ready Node and Express appfreecodecamp.org
- Configuring ESLint and Prettier for TypeScriptyoutube.com
- Node.js Server Setup with Type Safety and Testinglinkedin.com
- Tao of Node - Design, Architecture & Best Practices | Alex Kondovalexkondov.com
- TypeScript Structured Concurrencythecandidstartup.org
- Realtime with serverless using Websocket in AWSunimedia.tech
- Node.js Fundamentals: Web Server Without Dependenciesblog.bloomca.me
- NPM Install Everything, and the Complete and Utter Chaos That Followsboehs.org