Skip to content

🔧 Packaging fix: now installable via dsh plugin add | 打包修复:现在可正常安装了 #3

Description

@TYEclipse

Dev log (2026-08-16)

This round was a packaging/hardening pass on the already-released v0.1.0 — no tool behavior changed, but the install path is now proven end to end:

Fixed

  • dsh.bundle.patch manifest pointing at cordis.patch.yml (the loader needs this to mount the plugin as a profile layer)
  • Removed peerDependencies declarations — runtime imports now resolve against the host dsh install tree, so no duplicate module copies end up in your profile
  • dist/ is now committed (git installs don't run a build step)
  • Added pnpm-workspace.yaml with allowBuilds: {esbuild: true}

Verified with a real install

dsh plugin --profile scratch add github:TYEclipse/dsh-units
dsh plugin --profile scratch list            # dsh-units@0.1.0 ✔
dsh --dump-config --profile scratch          # == dsh-units layer ✔
node -e "import('dsh-units')"                 # module loads ✔

Install it yourself: dsh plugin --profile <your-profile> add github:TYEclipse/dsh-units

Known limitation to be honest about: unit tables are a static dataset, so exotic/regional units may be missing — open an issue with the unit you need and I'll add it.

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