Skip to content

dsh plugin ... add github:cloader/dsh-taskboard installs a source-only checkout without lib/ — plugin fails to load #76

Closed

Description

@reysonk

Environment

  • DSH desktop (Tauri), profile tauri, Windows; pnpm 11.7.0 behind the dsh plugin manager.

  • Source: README section "Or install from the GitHub source":

    dsh plugin --profile web add github:cloader/dsh-taskboard

What happens

  • pnpm resolves the spec to the git tarball
    https://codeload.github.com/cloader/dsh-taskboard/tar.gz/fb97e7fa1a7c77d775675f4f2931ebf45ee23430
    and installs version 0.9.7 into node_modules/dsh-taskboard — without errors.

  • The installed package contains only src/, package.json, cordis.patch.yml, LICENSE, README.md.
    There is no lib/ directory.

  • package.json declares main: lib/index.js and exports pointing at
    ./lib/index.js, ./lib/invariant.js, ./lib/client.js — all missing.

  • Result: the plugin does not load. The dsh plugin market check reports:

    the declared entry artifact is missing (source-only checkout or blocked build) — the next boot would fail

Root cause (investigated)

  • The build step (tsdown) only runs at npm publish time:
    prepublishOnly: npm run build && npm test. There is no postinstall/prepare
    script that builds, and installing from a git tarball does not execute publish
    hooks — so a GitHub-source install is inherently a source-only checkout.
  • With lib/ absent, the declared entry artifact check cannot pass, and runtime
    loading fails the same way.

Workaround we use (verified)

  • Clone the repo locally, build once (pnpm exec tsdown -c tsdown.config.ts),
    and link it into the DSH profile as dsh-taskboard@link:<local path>.

Suggested fixes (any one closes the gap)

  1. Publish releases to npm (preferred — prepublishOnly already builds lib/),
    and keep the GitHub-source line documented as "for development only".
  2. Add a prepare (or postinstall) script that builds lib/, so git-tarball
    installs produce a loadable package (verify pnpm executes it for git deps in
    your target pnpm versions).
  3. Or point the README instruction at a branch/release tag that has lib/
    committed.

Until one of these lands, the "install from the GitHub source" instruction
cannot produce a working install.

Activity

  1. cloader commented on Nov 1, 2026

    @cloader
    Owner

    Thanks for reporting this. The plugin is already published on npm; the current latest version is 0.9.7. I verified that the published package includes lib/index.js, lib/invariant.js, and lib/client.js.

    Please install the prebuilt npm package. For the tauri profile in your report:

    dsh plugin --profile tauri add dsh-taskboard

    For the web profile:

    dsh plugin --profile web add dsh-taskboard

    Restart DSH after installing.

    The GitHub-source installation instructions and the obsolete prepare/allowBuilds troubleshooting have been removed from both READMEs in #79, now merged into dev. Local build/link instructions are kept in the Development section. Closing this as resolved through the npm installation path and corrected documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions