Skip to content

Bun apps can't reference local packages in pnpm monorepo #429

@yamcodes

Description

@yamcodes

Problem

Bun apps in our pnpm monorepo can't properly reference local workspace packages.

The bun-solid-start-playground app currently uses the file: protocol to reference local packages:

  • "arkenv": "file:../../../packages/arkenv"
  • "@arkenv/vite-plugin": "file:../../../packages/vite-plugin"

However, this doesn't work well because:

  1. Bun doesn't understand pnpm's workspace:* protocol
  2. The file: protocol doesn't integrate with the monorepo's dependency resolution
  3. This prevents proper dependency management and build processes

Context

  • Monorepo uses pnpm with workspace:* protocol
  • Bun apps are excluded from pnpm workspace (see pnpm-workspace.yaml)
  • Need a solution that allows Bun apps to reference local packages

Expected Solution

A way for Bun apps to reference local monorepo packages that works with both Bun's package manager and the pnpm monorepo structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions