Skip to content

Fix published type declarations for Node16 and NodeNext - #212

Open
rayw-lab wants to merge 1 commit into
basementstudio:mainfrom
rayw-lab:codex/fix-esm-declaration-specifiers
Open

rayw-lab wants to merge 1 commit into
basementstudio:mainfrom
rayw-lab:codex/fix-esm-declaration-specifiers

Conversation

@rayw-lab

Copy link
Copy Markdown

Fixes #211

The build adds .js extensions to relative imports in the emitted JavaScript. The corresponding imports in the declaration files are still extensionless, so TypeScript can't resolve them under node16 or nodenext. With skipLibCheck enabled, the invalid config field, clock assignment, and component prop in #211 all pass type checking.

Apply the same rewrite to the emitted .d.ts files. All 140 emitted JavaScript files match the pre-fix package byte for byte.

Testing

@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@rayw-lab is attempting to deploy a commit to the basement Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Published .d.ts files omit .js extensions on relative imports, breaking moduleResolution node16/nodenext

1 participant