Skip to content

Bug: bun install -g czottmann/linearis installs repo without dist/, no binary linked (works fine with linearis@latest) #32

@j2h4u

Description

@j2h4u

Side note: Linearis is awesome!

Just wanted to say: this tool is really nice to use--super practical for LLM/automation workflows.
Love you guys for building and maintaining this, linearis already lives in my Antigravity scaffolding ❤️

What happened

When installing from the GitHub repo using Bun, the installed package lacks the dist/ directory, even though the package.json declares the binary as:

{
  "bin": {
    "linearis": "dist/main.js"
  }
}

Because dist/main.js does not exist, Bun does not create the executable symlink in ~/.bun/bin.

However, installing from npm (bun install -g linearis@latest) works correctly — dist/ is present and ~/.bun/bin/linearis appears as expected.


Expected behavior

Running either of the following should install a working CLI binary:

bun install -g czottmann/linearis
# or
bun install -g --install-links czottmann/linearis

After installation:

linearis --help

should execute successfully.


Steps to reproduce

  1. bun --version1.3.5
  2. bun install -g --install-links czottmann/linearis
  3. Inspect installation:
    ls -la ~/.bun/bin | grep linearis  # no symlink created
    ls -la ~/.bun/install/global/node_modules/linearis  # has src/ but no dist/
  4. Compare working version:
    bun install -g linearis@latest
    ls -la ~/.bun/install/global/node_modules/linearis/dist  # dist/ present
    linearis --help  # works fine

Notes

It appears that installing directly from GitHub fetches the raw repository, not the prebuilt npm package.
If the build step relies on a prepare or postinstall script to generate dist/, Bun may skip it unless the dependency is marked as trusted.

This results in an incomplete installation and no global CLI link.


Workarounds

  • Use published npm package:
    bun install -g linearis@latest
  • Or fall back to:
    bunx linearis ...

Environment

  • OS: Ubuntu 24 (WSL2)
  • Bun version: 1.3.5
  • Node version (if applicable): v20.19.5
  • Linearis version (GitHub or npm): 2025.12.3

Additional context

bun install -g czottmann/linearis log output:

$ bun install -g --install-links czottmann/linearis
bun add v1.3.5 (1e86cebd)

installed linearis@github:czottmann/linearis#3b3ccd1 with binaries:
 - linearis

[39.00ms] done

warn: To run "linearis", add the global bin folder to $PATH:

export PATH="/home/j2h4u/.bun/bin:$PATH"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions