patternfly / patternfly/patternfly-react
Packages do not specify a `type` field
未关闭
还没有人认领这个 Issue。
Pinned
- 主要语言
- TypeScript
- 星标
- 862
- 派生
- 392
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 9
描述
Packages in the workspaces should set the type field in the package.json file. If this field is not set Node.JS may attempt to detect the package type causing a small performance hit. Ideally this field is set to `"type": "module" to indicate an ESM-first approach.
This is part of a series of issues resulting from publication linting introduced under #10764
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查 workspace 的 package.json 文件以及 #10764 中引入的发布 linting 上下文。确定哪些包缺少 type 字段,确认 issue 中预期的 ESM 值,并验证所有 workspace 包都满足发布 linting 检查。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js, typescript
- 领域
- build-system
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100