From 21adc4fc62e01e858d4bd70f72c873d6ffcfa1fa Mon Sep 17 00:00:00 2001 From: Gar Date: Fri, 2 Jul 2021 14:05:04 -0700 Subject: [PATCH] fixup! fix(docs): add npm update example --- docs/content/commands/npm-update.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/content/commands/npm-update.md b/docs/content/commands/npm-update.md index 50e542c6524d7..512d04c828b01 100644 --- a/docs/content/commands/npm-update.md +++ b/docs/content/commands/npm-update.md @@ -109,9 +109,11 @@ Suppose your app now also has a dependency on `dep2` ```json { -"dependencies": { - "dep1": "^1.0.0", - "dep2": "1.0.0" + "name": "my-app", + "dependencies": { + "dep1": "^1.0.0", + "dep2": "1.0.0" + } } ``` @@ -120,8 +122,9 @@ and `dep2` itself depends on this limited range of `dep1` ```json { "name": "dep2", -"dependencies": { - "dep1": "~1.1.1" + "dependencies": { + "dep1": "~1.1.1" + } } ```