Skip to content

Only include asset:///lib.node.d.ts when no @types/node package exists#16

Merged
dsherret merged 3 commits into
mainfrom
builtin_types_node
Dec 5, 2025
Merged

Only include asset:///lib.node.d.ts when no @types/node package exists#16
dsherret merged 3 commits into
mainfrom
builtin_types_node

Conversation

@dsherret

@dsherret dsherret commented Dec 4, 2025

Copy link
Copy Markdown

No description provided.

@dsherret
dsherret marked this pull request as ready for review December 4, 2025 22:54

@nathanwhit nathanwhit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@dsherret
dsherret merged commit 383c1a6 into main Dec 5, 2025
3 checks passed
@dsherret
dsherret deleted the builtin_types_node branch December 5, 2025 15:04
bartlomieju pushed a commit to denoland/deno that referenced this pull request Dec 9, 2025
This adds a new "node" lib that's included by default and can be
excluded by providing a custom `"lib": [...]` typescript compiler option
without the `"node"` value.

If it detects a `@types/node` package in the files being type checked it
will skip injecting the `lib.node.d.ts` file.

* Uses `npm:@types/node@24.2.0`
* See tools/update_types_node.ts for the build script.
* denoland/deno_npm#127 (will integrate this one
later)
* denoland/typescript-go#16
* denoland/TypeScript#19 (last two commits)

Closes #30963
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.

3 participants