Skip to content

发布规范:缺 types/src/tsconfig/build 入口(plugin_check) #7

Description

@Andiii208

发布规范问题:缺 types / src / tsconfig / build 入口(bundle 形态)

用 DSH 官方 plugin_check(@deepseek-ai/dsh-plugin-check)对本包体检(v1.3.15),发现以下 bundle 发布规范问题:

verdict: fail
- missing-main-or-types: types 未声明
- no-source-entry: src/index.ts 缺失
- no-tsconfig: tsconfig.json 缺失或非法 JSON
- no-build-entry: lib/ 不存在且无 scripts.build/prepare——clean checkout 无法生成运行入口
warnings:
- incomplete-files: files 缺少 lib、src
- missing-peer: peerDependencies 未声明

影响

  • types 缺失:TS 用户无类型提示;
  • src/tsconfig/build 脚本:clean checkout 无法复现构建,甚至无法生成运行入口;
  • peer 未声明:pnpm 安装报 peer 警告。

建议

  • 声明 types(如 lib/types/index.d.ts);fileslibsrccordis.patch.yml
  • peerDependencies 声明 cordis
  • src/index.tstsconfig.jsonscripts.build / scripts.prepack(或提交 lib 产物)。

复现

plugin_check check <repo>

体检环境:DSH Desktop Web,Windows,v1.3.15。

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