环境
- 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.json 的 main 指向 ./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 后完全无法使用。
请求
- 提交根目录
lib/ 构建产物,或添加 prepare 脚本("prepare": "tsc -p tsconfig.json");
- 修复 devDependencies:发布
@deepseek-ai/dsh-type-meta 或移除该依赖(它仅影响构建工具链,不影响运行时——插件本身零运行时依赖,设计很好);
- 发布 npm 包,让用户
dsh plugin add @deepseek-ai/dsh-toolkit 一键安装。
附:typescript@7.0.2 已采用平台二进制拆分(需 @typescript/typescript-linux-x64),若保留 TS7 建议在 README 说明构建环境要求。
环境
@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.json的main指向./lib/index.js,但 git 仓库根目录没有lib/(只有src/index.ts)。子包packages/*/lib/均有构建产物,唯独根入口未构建、未提交。dsh plugin add github:omdsh-dev/dsh-toolkit安装成功后启动即报:且
scripts中没有prepare(git 安装不会自动构建)。问题 2【严重】devDependencies 引用不存在的包 → 本地构建被卡死
@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 后完全无法使用。请求
lib/构建产物,或添加prepare脚本("prepare": "tsc -p tsconfig.json");@deepseek-ai/dsh-type-meta或移除该依赖(它仅影响构建工具链,不影响运行时——插件本身零运行时依赖,设计很好);dsh plugin add @deepseek-ai/dsh-toolkit一键安装。