docs: correct yarn part of tutorial-5-packaging (#49401)

docs: fix yarn part of `tutorial-5-packaging` - adding electron forge
This commit is contained in:
Szymon Kurek
2026-01-23 11:14:19 +01:00
committed by GitHub
parent 1134d95c6d
commit 24526ccd39

View File

@@ -44,11 +44,25 @@ have to worry about wiring them all together.
You can install Electron Forge's CLI in your project's `devDependencies` and import your
existing project with a handy conversion script.
```sh npm2yarn
<Tabs>
<TabItem value="npm" label="npm">
```sh
npm install --save-dev @electron-forge/cli
npx electron-forge import
```
</TabItem>
<TabItem value="yarn" label="Yarn">
```sh
yarn add --dev @electron-forge/cli
yarn electron-forge import
```
</TabItem>
</Tabs>
Once the conversion script is done, Forge should have added a few scripts
to your `package.json` file.