Node islands: libnode pack requirement and coverage wording

Aperta
#3,534 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
6.5k
Fork
212
Merge medio
13h 46m
PR unite (30g)
787

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vercel-labs/scriptc

Tutte le issue di vercel-labs/scriptc

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.