Skip to content

Commit 4ea03e5

Browse files
authored
Merge pull request verekia#42 from MarianoGappa/master
Clarifies information about the "scripts" object.
2 parents 1fab633 + 2848771 commit 4ea03e5

File tree

1 file changed

+7
-1
lines changed
  • tutorial/1-node-npm-yarn-package-json

1 file changed

+7
-1
lines changed

tutorial/1-node-npm-yarn-package-json/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ You want any version of Node > 6.5.0.
2929

3030
Running `node .` to execute our program is a bit too low-level. We are going to use an NPM/Yarn script to trigger the execution of that code instead. That will give us a nice abstraction to be able to always use `yarn start`, even when our program gets more complicated.
3131

32-
- In `package.json`, add `"start": "node ."` in the `scripts` object.
32+
- In `package.json`, add a `scripts` object to the root object like so:
33+
34+
```
35+
"scripts": {
36+
"start": "node ."
37+
}
38+
```
3339

3440
`package.json` must be a valid JSON file, which means that you cannot have trailing commas. So be careful when editing manually your `package.json` file.
3541

0 commit comments

Comments
 (0)