Skip to content

Switch to pnpm workspaces#18

Merged
astudentinearth merged 25 commits intodevfrom
pnpm-monorepo
Mar 10, 2026
Merged

Switch to pnpm workspaces#18
astudentinearth merged 25 commits intodevfrom
pnpm-monorepo

Conversation

@astudentinearth
Copy link
Owner

This PR is for tracking and documentation purposes.

Due to the way electron-builder works and our project is set up, approximately ~80-100MiB of frontend dependencies leak into the final ASAR archive. None of these dependencies need to exist during runtime, as Vite already bundles them into at most a few .js files.

This will be resolved by switching to a monorepo structure with (at least) the following packages:

  • app-desktop (electron main process)
  • common
  • frontend
  • website (darkwrite.app)

Sources have been moved with git mv to retain file history.

Merging this will remove cut ~80-100MB of unused frontend dependencies by detaching the frontend from Electron related sources altogether.

@astudentinearth astudentinearth self-assigned this Mar 7, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 8, 2026

Deploying darkwrite with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8123179
Status: ✅  Deploy successful!
Preview URL: https://2077ded5.darkwrite.pages.dev
Branch Preview URL: https://pnpm-monorepo.darkwrite.pages.dev

View logs

@astudentinearth astudentinearth marked this pull request as ready for review March 10, 2026 17:18
@astudentinearth astudentinearth merged commit 108231c into dev Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant