Skip to content

Commit

Permalink
GITBOOK-193: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored and gitbook-bot committed Dec 6, 2024
1 parent 2f23fda commit 50ddba5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/makers/pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
```
{% endcode %}

All configuration options are optional, and options are documented in the API docs for [`MakerPkgConfig`](https://js.electronforge.io/interfaces/\_electron\_forge\_maker\_pkg.MakerPKGConfig.html).
All configuration options are optional, and options are documented in the API docs for [`MakerPkgConfig`](https://js.electronforge.io/interfaces/_electron_forge_maker_pkg.MakerPKGConfig.html).

### Adding installation scripts

Expand All @@ -67,7 +67,7 @@ my-app
   └── preinstall
```

Then, your Forge configuration would need to point to the `./scripts` folder.
Then, configure the Maker point its `scripts` property to the `./scripts` folder.

<pre class="language-javascript" data-title="forge.config.js"><code class="lang-javascript"><strong>const path = require('node:path');
</strong>
Expand All @@ -76,7 +76,7 @@ module.exports = {
{
name: '@electron-forge/maker-pkg',
config: {
<strong> install: path.join(__dirname, 'scripts)
<strong> scripts: path.join(__dirname, 'scripts')
</strong> }
}
]
Expand Down

0 comments on commit 50ddba5

Please sign in to comment.