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

+1-1
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)