The --prod flag for the pnpm install command is not well displayed as a boolean value.
It is unclear that one can use the flag like this pnpm install --prod=false to use a "development" install in a production environment. This has already happened to some people: https://github.com/pnpm/pnpm/issues/6254
This PR tries to explain the option a bit better, so its use-case is a bit more clear, and aims to make the docs page more consistent.
The
--prod
flag for thepnpm install
command is not well displayed as a boolean value. It is unclear that one can use the flag like thispnpm install --prod=false
to use a "development" install in a production environment. This has already happened to some people: https://github.com/pnpm/pnpm/issues/6254This PR tries to explain the option a bit better, so its use-case is a bit more clear, and aims to make the docs page more consistent.
I took inspiration from how the
--frozen-lockfile
option works: https://pnpm.io/cli/install#--frozen-lockfile