cocos / cocos/cocos-cli

package.json 问题

Open
#378 1 comment 0 reactions 1 assignee View on GitHub

@star-e is already working on this.

Since Jan 12, 2026.

P2
Dominant language
TypeScript
Stars
430
Forks
154
Avg merge
2d 4h
Merged PRs (30d)
61

Description

项目依赖需补上 glob

workflow/generate-i18n-types.js 里依赖了 glob 模块,package.json 里却没有这个依赖,导致 npm install 时会报错说找不到 glob 模块。

项目依赖需补上 rollup@babel/core

同理,没有的话执行 node workflow/generate-schema.js 会报错 ocos-cli/src/core/builder/@types/protected/options.ts (2,25): Cannot find module 'rollup' or its corresponding type declarations.

typescript 版本需限制在 5.4.x

目前使用的 ^5.4.5 会导致用户在执行 npm install 时安装了最高版本的 5.9.x,而这么高版本的 typescript 你们项目又不支持(在执行 tsc -b 时会报错),建议固定为 5.4.5 得了。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.