Skip to content

fix monorepo-broken version detection and package resolution#172

Open
AaronO wants to merge 1 commit intoblackboardsh:mainfrom
AaronO:main
Open

fix monorepo-broken version detection and package resolution#172
AaronO wants to merge 1 commit intoblackboardsh:mainfrom
AaronO:main

Conversation

@AaronO
Copy link

@AaronO AaronO commented Feb 20, 2026

ELECTROBUN_DEP_PATH was hardcoded to projectRoot/node_modules/electrobun which doesn't exist in monorepos with hoisted node_modules. This caused version detection to fall back to "latest" and all binary/cache paths & URLs to break.

  • Walk up directory tree to find electrobun in node_modules (handles yarn/pnpm/npm/bun workspaces)
  • Derive .electrobun-cache path from resolved location instead of hardcoding against projectRoot
  • Replace runtime package.json reads with compile-time version constant

ELECTROBUN_DEP_PATH was hardcoded to projectRoot/node_modules/electrobun
which doesn't exist in monorepos with hoisted node_modules. This caused
version detection to fall back to "latest" and all binary/cache paths to
break.

- Walk up directory tree to find electrobun in node_modules (handles
  yarn/pnpm/npm/bun workspaces)
- Derive .electrobun-cache path from resolved location instead of
  hardcoding against projectRoot
- Replace runtime package.json reads with compile-time version constant
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