Skip to content

Commit 35e17e8

Browse files
Update specifying-dependencies-and-devdependencies-in-a-package-json-… (#1221)
…file.mdx mention shortcut flags <!-- What / Why --> for convenience, mention abbreviated versions of `--save-prod` and `--save-dev`
1 parent 3541e52 commit 35e17e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/specifying-dependencies-and-devdependencies-in-a-package-json-file.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can add dependencies to a `package.json` file from the command line or by ma
1313

1414
### Adding dependencies to a `package.json` file from the command line
1515

16-
To add dependencies and devDependencies to a `package.json` file from the command line, you can install them in the root directory of your package using the `--save-prod` flag for dependencies (the default behavior of `npm install`) or the `--save-dev` flag for devDependencies.
16+
To add dependencies and devDependencies to a `package.json` file from the command line, you can install them in the root directory of your package using the `--save-prod` flag (also `-S`) for dependencies (the default behavior of `npm install`) or the `--save-dev` flag (also `-D`) for devDependencies.
1717

1818
To add an entry to the `"dependencies"` attribute of a `package.json` file, on the command line, run the following command:
1919

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy