Browse Source

docs: updated package.json content and electron version in build first app guide (#37554)

* Docs: updated package.json content and electron version in build first app guide

* docs: removed caret from electron version
Mikołaj Sawicki 2 years ago
parent
commit
2e1f803f37
1 changed files with 9 additions and 5 deletions
  1. 9 5
      docs/tutorial/tutorial-2-first-app.md

+ 9 - 5
docs/tutorial/tutorial-2-first-app.md

@@ -81,10 +81,13 @@ the exact dependency versions to install.
   "version": "1.0.0",
   "description": "Hello World!",
   "main": "main.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
   "author": "Jane Doe",
   "license": "MIT",
   "devDependencies": {
-    "electron": "19.0.0"
+    "electron": "23.1.3"
   }
 }
 ```
@@ -137,13 +140,14 @@ script in the current directory and run it in dev mode.
   "version": "1.0.0",
   "description": "Hello World!",
   "main": "main.js",
-  "author": "Jane Doe",
-  "license": "MIT",
   "scripts": {
-    "start": "electron ."
+    "start": "electron .",
+    "test": "echo \"Error: no test specified\" && exit 1"
   },
+  "author": "Jane Doe",
+  "license": "MIT",
   "devDependencies": {
-    "electron": "^19.0.0"
+    "electron": "23.1.3"
   }
 }
 ```