Skip to content

Commit

Permalink
docs: typo (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
kutu authored and develar committed Dec 18, 2016
1 parent e0bdc0e commit dfb8890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Two package.json Structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Since version 8 electron-builder rebuilds only production dependencies, so, you

2. For your application (`./app/package.json`)

The `package.json` resides in the `app` directory. Declare your application dependencies (`depencencies`) here. *Only this directory is distributed with the final, packaged application.*
The `package.json` resides in the `app` directory. Declare your application dependencies (`dependencies`) here. *Only this directory is distributed with the final, packaged application.*

Why?

Expand All @@ -15,4 +15,4 @@ Why?

Please see [Loading App Dependencies Manually](https://github.com/electron-userland/electron-builder/wiki/Loading-App-Dependencies-Manually) and [#379](https://github.com/electron-userland/electron-builder/issues/379#issuecomment-218503881).

If you use the two-package.json project structure, you'll only have your `devDependencies` in your development `package.json` and your `dependencies` in your app `package.json`. To ensure your dependencies are always updated based on both files, simply add `"postinstall": "install-app-deps"` to your development `package.json`. This will basically automatically trigger an `npm install` within your app directory so you don't have to do this work every time you install/update your dependencies.
If you use the two-package.json project structure, you'll only have your `devDependencies` in your development `package.json` and your `dependencies` in your app `package.json`. To ensure your dependencies are always updated based on both files, simply add `"postinstall": "install-app-deps"` to your development `package.json`. This will basically automatically trigger an `npm install` within your app directory so you don't have to do this work every time you install/update your dependencies.

0 comments on commit dfb8890

Please sign in to comment.