Skip to content

请不要把typescript放到dependencies里 #444

Open

Description

@Kuingsmile

typescript应当放到devDependencies,这导致我的项目把typescript也打包了

Activity

  1. lichenabson commented on Nov 24, 2025

    @lichenabson

    same problem

  2. Nliver commented on Oct 13, 2026

    @Nliver

    /code

  3. fennoai commented on Oct 13, 2026

    @fennoai

    已完成

    • 将 typescript 从 dependencies 移至 devDependencies,避免用户项目将其作为生产依赖安装。
    • 提交:fa1cc7c fix: move typescript to devDependencies
    • 已推送分支:fennoai/issue-444-1791892407
    • 已创建 PR:fix: move typescript to devDependencies #459

    验证

    • npm run check-type
    • npm pack --dry-run
    • git diff --check

    工作区干净。依赖安装过程中报告了仓库旧依赖已有的 npm audit 警告,本次未涉及处理。

    View job run

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