Skip to content

fix: move @readied/* to devDependencies — fixes ASAR startup crash#235

Merged
tomymaritano merged 1 commit into
developfrom
fix/asar-workspace-deps-to-dev
Apr 24, 2026
Merged

fix: move @readied/* to devDependencies — fixes ASAR startup crash#235
tomymaritano merged 1 commit into
developfrom
fix/asar-workspace-deps-to-dev

Conversation

@tomymaritano

@tomymaritano tomymaritano commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

Moves workspace packages to devDependencies so electron-builder won't copy them into the ASAR.

Summary by CodeRabbit

  • Chores
    • Updated build configuration and reorganized dependencies for the desktop application to optimize the packaging process.

Root cause: electron-builder copies all `dependencies` into the ASAR's
node_modules/. The @readied/* workspace packages have ESM-only exports
maps pointing to .ts source files, which CJS can't resolve at runtime.

Fix: Move all 12 @readied/* workspace packages from dependencies to
devDependencies. electron-builder only packages dependencies (not
devDependencies) into the ASAR. Since electron-vite already bundles
all workspace code into out/main/index.js, they're build-time only.

Previous fixes that didn't work:
- externalizeDepsPlugin exclude: bundles code but doesn't prevent
  electron-builder from also copying to node_modules/
- !node_modules/@readied/** in files: not respected for pnpm symlinks

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readide Ready Ready Preview, Comment Apr 24, 2026 3:12pm

Request Review

@github-actions github-actions Bot enabled auto-merge (squash) April 24, 2026 15:12
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file app:desktop labels Apr 24, 2026
@coderabbitai

coderabbitai Bot commented Apr 24, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: feaac83e-f8b9-4862-8242-590d8a43d7f6

📥 Commits

Reviewing files that changed from the base of the PR and between bb88da2 and b3e61a5.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • apps/desktop/package.json

📝 Walkthrough

Walkthrough

The apps/desktop/package.json file is updated to reclassify @readied/* packages from runtime dependencies to development dependencies, and the Electron Builder configuration no longer explicitly excludes these packages from node_modules during packaging.

Changes

Cohort / File(s) Summary
Dependency and Build Configuration
apps/desktop/package.json
Migrated multiple @readied/* packages from "dependencies" to "devDependencies" and removed the Electron Builder packaging rule that excluded node_modules/@readied/**; source map exclusion rule (out/**/*.map) remains unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

ci, size/M

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/asar-workspace-deps-to-dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tomymaritano tomymaritano merged commit 550f1c2 into develop Apr 24, 2026
7 of 9 checks passed
@tomymaritano tomymaritano deleted the fix/asar-workspace-deps-to-dev branch April 24, 2026 15:12
github-actions Bot pushed a commit that referenced this pull request Apr 24, 2026
## Release PR

Merges `develop` into `main` to trigger a new release via
semantic-release.

### Highlights since last release

- **feat: allow disabling built-in plugins** + MCP server FTS5 fix
(#237)
- **fix: move @readied/* to devDependencies** — ASAR startup crash
(#235)
- **fix: exclude @readied/* from ASAR** (#233)
- **feat: local HTTP API, quick capture, mermaid/math plugins** (#231)
- **fix: replace removed lucide brand icons** (#229)
- Multiple CI, type compat, and dependency fixes

### MCP server: sql.js → better-sqlite3
- FTS5 triggers now work (was crashing with `no such module: fts5`)
- WAL mode for safe concurrent access with the desktop app
- Runtime FTS5 check at startup with descriptive error

### Plugin system fixes (from code review)
- Built-in plugins no longer briefly activate before enabled state loads
- IPC listener cleanup no longer nukes unrelated listeners

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **New Features**
* Built-in plugins can now be toggled on/off in settings;
enabled/disabled states persist across sessions
* Improved markdown editor URL auto-linking for more reliable link
creation

* **Bug Fixes**
* Fixed URL auto-linking to correctly identify URLs when document
content changes

* **Tests**
  * Added comprehensive test suite for database trigger functionality

* **Chores**
  * Migrated database backend for improved performance and stability

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:desktop dependencies Pull requests that update a dependency file size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant