pnpm / pnpm.io

pnpm's website
https://pnpm.io
MIT License
213 stars 477 forks source link

docs: improve explanation of --prod flag #500

Closed CakeWithDivinity closed 8 months ago

CakeWithDivinity commented 8 months ago

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.

I took inspiration from how the --frozen-lockfile option works: https://pnpm.io/cli/install#--frozen-lockfile

stackblitz[bot] commented 8 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

vercel[bot] commented 8 months ago

@CakeWithDivinity is attempting to deploy a commit to the pnpm Team on Vercel.

A member of the Team first needs to authorize it.