flâneur — a map of the web's best reading

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

Explore this link on the map →

related reading