Skip to content

Commit 0d782c0

Browse files
committed
add --dev caveat to readme
1 parent 083ae99 commit 0d782c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ Then
3939

4040
npm i patch-package
4141

42+
You can use `--save-dev` if you don't need to run npm in production, e.g. if you're making a web frontend.
43+
4244
### yarn
4345

4446
yarn add patch-package postinstall-postinstall
4547

48+
You can use `--dev` if you don't need to run yarn in production, e.g. if you're making a web frontend.
49+
4650
To understand why yarn needs the `postinstall-postinstall` package see: [Why use postinstall-postinstall](#why-use-postinstall-postinstall-with-yarn)
4751

4852
## Usage

0 commit comments

Comments
 (0)