Skip to content

Use modern TypeScript module resolution#1272

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
remcohaszing:typescript-nodenext
Jun 8, 2026
Merged

Use modern TypeScript module resolution#1272
datho7561 merged 1 commit into
redhat-developer:mainfrom
remcohaszing:typescript-nodenext

Conversation

@remcohaszing

Copy link
Copy Markdown
Contributor

What does this PR do?

This project was still using the deprecated TypeScript module resolution node10 (aka node). This change updates the module resolution to nodenext. Imports were fixed accordingly.

Notably, yaml/dist/parse/cst isn’t exported, but this is exported as the CST namespace in the yaml module.

This is a preparation for updating to LSP 3.18, because some related packages no longer support the old module resolution anymore. It’s also a preparation to go ESM-only at some point.

What issues does this PR fix or reference?

N/A

Is it tested? How?

tsc

This project was still using the deprecated TypeScript module resolution
`node10` (aka `node`). This change updates the module resolution to
`nodenext`. Imports were fixed accordingly.

Notably, `yaml/dist/parse/cst` isn’t exported, but this is exported as
the `CST` namespace in the `yaml` module.

This is a preparation for updating to LSP 3.18, because some related
packages no longer support the old module resolution anymore.
@remcohaszing remcohaszing requested a review from datho7561 as a code owner June 7, 2026 13:27

@datho7561 datho7561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good and it's an important step towards es module support. Thanks, Remco!

@datho7561 datho7561 merged commit 6fc3773 into redhat-developer:main Jun 8, 2026
4 checks passed
@remcohaszing remcohaszing deleted the typescript-nodenext branch June 8, 2026 18:34
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.

2 participants