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.
SuperDoc package postbuild currently resolves the Windows package shim
tsc.cmdand passes it directly to NodespawnSync()without a shell. On current Node releases this fails before TypeScript runs, soensure-types.cjsreports 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/tscand invokes it throughprocess.execPath, uses the same helper for both declaration emits, and reportsspawnSync.errorexplicitly.Reproduction: run
pnpm --filter superdoc buildon Windows with Node 24. The Vite bundles complete, then the postbuild fails at the first standalone declaration emit.