Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#491 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@ashunar0 arbeitet bereits daran.

Seit 19.10.2026.

  • #495 von @ashunar0 — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
node.js, typescript, vite

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
402
Forks
32
Ø Merge
12 Std. 1 Min.
Gemergte PRs (30 T.)
80

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/void

Alle Issues in voidzero-dev/void

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.