Problem
very-happy-dom@0.1.10 declares the ./register export as ./dist/register.js with types at ./dist/register.d.ts, but neither file exists in the published npm tarball.
As a result, the documented preload fails:
error: preload not found "very-happy-dom/register"The package root works and still exports GlobalRegistrator, so manual registration is available. The source repository also contains src/register.ts; this is a package build or files-output gap rather than a missing implementation.
Reproduction
npm pack very-happy-dom@0.1.10
tar -tf very-happy-dom-0.1.10.tgz | grep register
# no output
bun --preload very-happy-dom/register -e "console.log(typeof document)"
# error: preload not found "very-happy-dom/register"Acceptance
- The published tarball contains
dist/register.jsanddist/register.d.ts. bun --preload very-happy-dom/registerinstallswindowanddocument.- A package-level test inspects the packed artifact, not only the source tree.