chan.dev / posts

Fix prebuild and postbuild scripts in pnpm

🌱 This post is in the growth phase. It may still be useful as it grows up.

In pnpm, prebuild and postbold events don’t fire like the do with npm and yarn.

This can be “fixed” by adding enable-pre-post-scripts=true to .npmrc.

.npmrc
enable-pre-post-scripts=true