[npm-check-fork] Replace package-json and throat dependencies with local implementations
@TheLarkInn đang làm issue này rồi.
Từ ngày 24/1/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
The @rushstack/npm-check-fork package depends on package-json and throat, which should be replaced with existing Rush Stack utilities:
- package-json: ESM-only module with a heavy dependency tree (~500KB). We only use it to fetch basic registry metadata.
- throat: Concurrency limiter that duplicates functionality already in
@rushstack/node-core-library
Details
Proposed solution:
- Replace
package-jsonwith a minimalNpmRegistryClientclass using the existingWebClientfrom@rushstack/rush-lib - Replace
throatwithAsync.forEachAsyncfrom@rushstack/node-core-library
Benefits:
- Eliminates ESM compatibility issues with CJS consumers
- Reduces bundle size and dependency footprint
- Integrates with Rush's existing proxy configuration
- Uses utilities already in the codebase
- Reduces chances of CVE's from upstream dependencies
Standard questions
| Question | Answer |
|---|---|
| Package name: | @rushstack/npm-check-fork |
| Package version? | 5.0.x |
| Operating system? | All |
| Would you consider contributing a PR? | Yes |
Node.js version (node -v)? |
18.x+ |
- Ngôn ngữ chính
- TypeScript
- Star
- 6.5k
- Fork
- 708
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 62
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/rushstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của microsoft/rushstack
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Improvement for contact popover Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
i-am-bee/beeai-framework#1697 · 1 reaction ·
-
Support bun dedupe Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
antfu/node-modules-inspector#214 ·