Skip to content

fix(deps): 🐛 move electron to optionalDependencies for build compatibility#4

Merged
jorben merged 2 commits intomasterfrom
fix_depend_electron
Jan 25, 2026
Merged

fix(deps): 🐛 move electron to optionalDependencies for build compatibility#4
jorben merged 2 commits intomasterfrom
fix_depend_electron

Conversation

@jorben
Copy link
Collaborator

@jorben jorben commented Jan 25, 2026

Summary

  • Move electron from dependencies to optionalDependencies to resolve electron-builder error
  • Maintains npx markpdfdown execution capability since npm still installs optional dependencies

Problem

electron-builder requires electron to be in devDependencies only, but CLI execution via npx needs electron available at runtime.

Solution

Using optionalDependencies satisfies both requirements:

  • electron-builder only checks dependencies (not optionalDependencies)
  • npm install still installs packages from optionalDependencies

Test plan

  • Verify npm run build:win / build:mac / build:linux succeeds
  • Verify npx markpdfdown still works correctly

🤖 Generated with Claude Code

jorben and others added 2 commits January 25, 2026 14:16
…ility

Move electron from dependencies to optionalDependencies to resolve
electron-builder error while maintaining npx execution capability.

Co-Authored-By: Claude <noreply@anthropic.com>
Add --no-merges flag to git log to skip auto-generated merge commits
from GitHub that don't follow conventional commit format.

Co-Authored-By: Claude <noreply@anthropic.com>
@jorben jorben merged commit de2b957 into master Jan 25, 2026
2 checks passed
@jorben jorben deleted the fix_depend_electron branch January 27, 2026 06:36
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