Skip to content

config: type build.targets as a union of known target names #686

Closed

Description

@blove

Problem

build.targets in config() is typed readonly string[], so a typo such as targets: ["vercell"] type-checks and only fails at b4 build time.

Proposal

Type it as a union of known target names (("vercel" | "node" | "hono" | …)[]), optionally with a (string & {}) escape hatch for plugins.

Activity

  1. added
    enhancement
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions