Skip to content

[Bug] 无法一键安装: 根目录无 lib/ 产物 + devDeps 引用不存在的 @deepseek-ai/dsh-type-meta #2

Description

@pipipigu

环境

  • dsh: @deepseek-ai/dsh@0.1.0-rc.6(web profile)
  • 插件: @deepseek-ai/dsh-toolkit(本仓库,v0.0.1)
  • 安装方式: dsh plugin --profile web add github:omdsh-dev/dsh-toolkit

问题:当前无法一键安装,本地构建也被坏依赖卡死(3 个问题)

问题 1【严重】根目录无构建产物 → git 安装后无法加载

package.jsonmain 指向 ./lib/index.js,但 git 仓库根目录没有 lib/(只有 src/index.ts)。子包 packages/*/lib/ 均有构建产物,唯独根入口未构建、未提交。dsh plugin add github:omdsh-dev/dsh-toolkit 安装成功后启动即报:

Cannot find module '.../@deepseek-ai/dsh-toolkit/lib/index.js'

scripts没有 prepare(git 安装不会自动构建)。

问题 2【严重】devDependencies 引用不存在的包 → 本地构建被卡死

$ npm install
npm error 404 Not Found - GET https://registry.npmjs.org/@deepseek-ai/dsh-type-meta/-/dsh-type-meta-0.0.1-rc.1.tgz

@deepseek-ai/dsh-type-meta@^0.0.1-rc.1(package-lock.json 中引用)在 npm 上完全不存在(metadata 404)。用户想本地 tsc 构建绕行,装依赖这步就失败。请确认该依赖的实际来源(未发布的私有包?)并替换/发布。

问题 3【中】未发布 npm 包

@deepseek-ai/dsh-toolkit 在 npm 上 404,用户只能从 git 安装,叠加问题 1/2 后完全无法使用。

请求

  1. 提交根目录 lib/ 构建产物,或添加 prepare 脚本("prepare": "tsc -p tsconfig.json");
  2. 修复 devDependencies:发布 @deepseek-ai/dsh-type-meta 或移除该依赖(它仅影响构建工具链,不影响运行时——插件本身零运行时依赖,设计很好);
  3. 发布 npm 包,让用户 dsh plugin add @deepseek-ai/dsh-toolkit 一键安装。

附:typescript@7.0.2 已采用平台二进制拆分(需 @typescript/typescript-linux-x64),若保留 TS7 建议在 README 说明构建环境要求。

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