Node islands: libnode pack requirement and coverage wording

Open
#3,534 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
6.7k
Forks
229
Avg merge
14h 29m
Merged PRs (30d)
787

Getting set up

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.

More from vercel-labs/scriptc

All issues in vercel-labs/scriptc

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.