Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[npm-check-fork] Replace package-json and throat dependencies with local implementations

Đang mở
#5,564 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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ả

effort: medium enhancement

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:

  1. Replace package-json with a minimal NpmRegistryClient class using the existing WebClient from @rushstack/rush-lib
  2. Replace throat with Async.forEachAsync from @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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/rushstack

Tất cả issue của microsoft/rushstack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.