electron-forge-docs icon indicating copy to clipboard operation
electron-forge-docs copied to clipboard

Bun/Deno Support

Open Android789515 opened this issue 11 months ago • 3 comments

Currently I can't make an Electron Forge app with bun. Says on the docs that only NPM and Yarn Classic are supported. Are there any thoughts about supporting Deno or Bun?

Android789515 avatar Feb 11 '25 00:02 Android789515

Electron Forge doesn't currently support Bun as a package manager - you're right that the official documentation only lists NPM and Yarn Classic as supported options. As of my knowledge, there weren't any official announcements about adding Bun or Deno support to Electron Forge. This limitation exists because Electron Forge has specific integrations with those package managers' behaviors and command structures. If you want to use Bun with Electron, you might have this one option:

  1. Create a standard Electron app manually without Forge
  2. Use NPM/Yarn for the initial setup with Forge and then try to migrate to Bun
  3. Check for community-created forks or plugins that might have added unofficial support

Try this might this also cause issue, like I tried mapping NPM to bun but it didn't work. You can try this once. For now this is only the option. Because Bun or Deno not officially support to Electron Forge.

Nitish0777 avatar Mar 20 '25 04:03 Nitish0777

#221

Hey, I'm trying to work on this issue

Sanjai-Shaarugesh avatar Mar 30 '25 14:03 Sanjai-Shaarugesh

#221

Electron Forge support for Bun/Deno Support #221

Fixes in packages for both npm and bun
pnpm isn't working

For npm, use these commands:

npx create-electron-app@latest my-svelte-app --template=vite

cd my-svelte-app 
npm install svelte
npm install --save-dev @vitejs/plugin-svelte

For bun, use these commands:

bunx create-electron-app@latest my-svelte-app --template=vite
cd my- svelte-app 
bun install svelte
bun install --save-dev @vitejs/plugin-svelte

Sanjai-Shaarugesh avatar Mar 30 '25 19:03 Sanjai-Shaarugesh