It is OK to keep random things in a single monorepo

For a long time, I was an opponent of monorepos. There are many popular open source contributors that have hundreds of packages on npm and each of those packages have a dedicated GitHub repository. I thought everyone does it this way, so it should...

Why package managers need hook systems

We introduced hooks to pnpm in version 1.12. In this article I want to write about why we think package managers (PMs) need hooks.Why would we want to hook into node_modules?When installing dependencies of a Node-project, the node_modules structur...

pnpm's strictness helps to avoid silly bugs

pnpm is a package manager for Node.js.I have written an article earlier about why should we use pnpm.In this article I want to demonstrate how using pnpm helps in preventing some silly bugs.When using npm, you have access to packages that you don’...

Why should we use pnpm?

pnpm is an alternative package manager for Node.js.It is a drop-in replacement for npm, but faster and more efficient.How fast? 3 times faster! See benchmarks here.Why more efficient? When you install a package, we keep it in a global store on you...

How to write a good npm module

Creating a new npm module is as easy as executing the npm init command.However, writing an awesome! npm module involves more than just creating a minimal package.json file.Tests are important!An awesome npm module should have tests. It doesn’t mat...