Skip to content

Add .js extensions to relative imports for nodenext consumers#12

Merged
wch merged 1 commit into
mainfrom
ai-config-nodenext-dist
Jul 14, 2026
Merged

Add .js extensions to relative imports for nodenext consumers#12
wch merged 1 commit into
mainfrom
ai-config-nodenext-dist

Conversation

@melissa-barca

Copy link
Copy Markdown
Collaborator

Fixes #11.

All relative import/export specifiers in ai-config now carry .js extensions, and its tsconfig overrides the base with module/moduleResolution nodenext so an extensionless specifier fails the build.

Verified with ai-config's check-types and tests, and against my local Positron branch consuming the rebuilt dist/: scoped tsc is clean and the extension-host tests pass, including the runtime await import('ai-config/node') path.

@melissa-barca
melissa-barca requested a review from wch July 14, 2026 20:17

@wch wch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@wch
wch merged commit f937699 into main Jul 14, 2026
1 check passed
@wch
wch deleted the ai-config-nodenext-dist branch July 14, 2026 21:47
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.

ai-config emits extensionless relative imports that break nodenext consumers

2 participants