Node islands: libnode pack requirement and coverage wording

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript

Hướng nghiên cứu

Start by reading the SC8005 diagnostic and the scriptc coverage output to find where the missing libnode pack requirement and island wording are defined. Check the project documentation for where Node island prerequisites belong, including the pnpm approve-builds note. Done means the diagnostic names the package and required version, and the coverage wording and docs explain the pack and native binding prerequisites.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

scriptc 0.4.11, main at 918d80b26a, macOS arm64.

Findings from building and running a Node island (better-sqlite3 13 with @types/better-sqlite3) with @scriptc/[email protected] installed.

  • With the libnode pack installed, --node-islands=auto builds and the binary runs.
  • The pack is not installed automatically. Without it the build stops with SC8005; the message could say which package to add and at which version.
  • scriptc coverage labels islands "would-be, report-only", which reads as if islands cannot work. It does not say a libnode pack is needed.
  • The island needs the package's native bindings to exist. With pnpm 12, build scripts are blocked by default, so better-sqlite3 failed at runtime with "Could not locate the bindings file". That is environment, not a scriptc bug, but a docs note on pnpm approve-builds for island packages would save time.

Related: #3131, #3186, #3240, #3412, #3415, #3416.

Ngôn ngữ chính
TypeScript
Star
6.5k
Fork
212
Merge trung bình
13 giờ 46 phút
Pull request đã merge (30 ngày)
787

Chuẩn bị môi trường

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 vercel-labs/scriptc

Tất cả issue của vercel-labs/scriptc

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.