From 707e57e4c92719f775fab5ab489e2c935f1f2e3b Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Tue, 16 Jan 2024 14:04:43 -0800 Subject: [PATCH 1/2] Replace comma with period in run on sentence - I also removed the word "direct" in the phrase "direct dependencies." To be honest, I'm not sure if this change was correct; I don't know what the differences between a "dependency" and a "direct dependency," and I'm hoping to learn through feedback on this PR. - If "direct" means "not transitive," I don't think any clarity is lost by my modification. I'd even argue this change adds clarity and may expose a missing detail: what happens to transitive dependencies when you `npm update`? Of course, that question is built on top of assumptions; I'm hoping that sharing what I was thinking at the time could help others in reviewing my change. --- docs/lib/content/commands/npm-update.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lib/content/commands/npm-update.md b/docs/lib/content/commands/npm-update.md index 7e4f0564d17d7..9ba56f3a90e1f 100644 --- a/docs/lib/content/commands/npm-update.md +++ b/docs/lib/content/commands/npm-update.md @@ -23,8 +23,8 @@ packages. If no package name is specified, all packages in the specified location (global or local) will be updated. -Note that by default `npm update` will not update the semver values of direct -dependencies in your project `package.json`, if you want to also update +Note that by default `npm update` will not update the semver values of +dependencies in your project `package.json`. If you want to also update values in `package.json` you can run: `npm update --save` (or add the `save=true` option to a [configuration file](/configuring-npm/npmrc) to make that the default behavior). From 8200d80b4f50bbaefc0286e245d91812e2dac937 Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Tue, 16 Jan 2024 20:48:40 -0800 Subject: [PATCH 2/2] Update docs/lib/content/commands/npm-update.md --- docs/lib/content/commands/npm-update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lib/content/commands/npm-update.md b/docs/lib/content/commands/npm-update.md index 9ba56f3a90e1f..1c431a22df30d 100644 --- a/docs/lib/content/commands/npm-update.md +++ b/docs/lib/content/commands/npm-update.md @@ -23,7 +23,7 @@ packages. If no package name is specified, all packages in the specified location (global or local) will be updated. -Note that by default `npm update` will not update the semver values of +Note that by default `npm update` will not update the semver values of direct dependencies in your project `package.json`. If you want to also update values in `package.json` you can run: `npm update --save` (or add the `save=true` option to a [configuration file](/configuring-npm/npmrc)