Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 7d50dc6

Browse files
authored
Merge pull request #196 from petosorus/npm_init_evolution
change 'adding a line to dependencies' to 'adding dependencies'
2 parents ba7dd71 + 7abe0ef commit 7d50dc6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/game-of-life/hello-world.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,17 @@ Rather than use the `hello-wasm-pack` package from npm, we want to use our local
297297
`wasm-game-of-life` package instead. This will allow us to incrementally develop
298298
our Game of Life program.
299299

300-
Open up `wasm-game-of-life/www/package.json` and edit the `"dependencies"` to
301-
include a `"wasm-game-of-life": "file:../pkg"` entry:
300+
Open up `wasm-game-of-life/www/package.json` and next to `"devDependiecs"`, add the `"dependencies"` field,
301+
including a `"wasm-game-of-life": "file:../pkg"` entry:
302302

303303
```js
304304
{
305305
// ...
306-
"dependencies": {
307-
"wasm-game-of-life": "file:../pkg", // Add this line!
308-
// ...
306+
"dependencies": { // Add this three lines block!
307+
"wasm-game-of-life": "file:../pkg"
308+
},
309+
"devDependencies": {
310+
//...
309311
}
310312
}
311313
```

0 commit comments

Comments
 (0)