Skip to content

Windows postbuild cannot launch tsc.cmd directly #3844

Description

@paulrauchbach

SuperDoc package postbuild currently resolves the Windows package shim tsc.cmd and passes it directly to Node spawnSync() without a shell. On current Node releases this fails before TypeScript runs, so ensure-types.cjs reports that the shared/common declaration emit failed with no TypeScript diagnostic.

A focused proposed fix is available in the public Pantheon fork at paulrauchbach/superdoc commit ce67eb7a8. It resolves typescript/bin/tsc and invokes it through process.execPath, uses the same helper for both declaration emits, and reports spawnSync.error explicitly.

Reproduction: run pnpm --filter superdoc build on Windows with Node 24. The Vite bundles complete, then the postbuild fails at the first standalone declaration emit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions