Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow `npm create void` and `void init` to run without prompts

Chiusa
#491 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #495 di @ashunar0 — integrata

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript, vite

Direzione di ricerca

Start by reading the void init and create-void command entry points and the AGENTS.md step mentioned in the issue, which already checks process.env.CI || !process.stdin.isTTY. Trace how the starter, toolchain, framework, database and deploy choices reach the prompts. Done means both commands accept those choices as flags, create-void passes them through, and missing non-interactive answers produce a non-zero exit with the required flag named.

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

Descrizione

In a non-interactive environment (CI, scripts, coding agents), npm create void prints "✓ Created" without scaffolding anything:

$ npx [email protected] my-app < /dev/null; echo "exit=$?"
◇ Scaffolding starter...
● Empty project detected. Scaffolding a Pages starter...
› Choose a Pages scaffold toolchain:
  › Vite+: Uses the Vite+ toolchain and vp commands.
    Vite
  ↑/↓ navigate · Enter confirm
◇ Installing starter dependencies...
✓ Created my-app
cd my-app && npm run dev
exit=0
$ ls -A my-app
node_modules  package-lock.json  package.json

void init shows the first prompt, then exits with code 0 without creating anything. create-void treats that as success and carries on.

There is also no way to pass the choices as flags. void init only accepts --tsconfig, --git and --github; the starter, toolchain, framework, database and deploy target can only be chosen interactively.

Two requests:

  1. Let void init take the choices as flags, and let npm create void pass them through (like --template in create-vite).
  2. When there is no interactive terminal and an answer is missing, exit with a non-zero code and say which flag is needed.

The AGENTS.md step already checks process.env.CI || !process.stdin.isTTY and skips itself, so the same check could be used here.

Lingua principale
TypeScript
Stelle
402
Fork
32
Merge medio
11h 52m
PR unite (30g)
88

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 voidzero-dev/void

Tutte le issue di voidzero-dev/void

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.