Scripts

How pnpm handles the scripts field of package.json.

Scripts du cycle de vie#

pnpm:devPreinstall#

Runs when pnpm install runs in the project itself, including in CI. It does not run when the package is installed as a dependency of another project.

S'exécute avant l'installation de toute dépendance.

This script is executed only when set in the root project's package.json.