doc: update "Type stripping in dependencies" section

The docs state, "To discourage package authors from publishing packages
written in TypeScript, Node.js will _by default_ refuse to handle
TypeScript files inside folders under a `node_modules` path" (emphasis
added). This suggests that there's a way to override that default.
However, as far as I can tell, there is not.

PR-URL: https://github.com/nodejs/node/pull/59652
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
Josh Kelley authored and Michaël Zasso committed 2025-09-04 10:15:18 +02:00
1 parent 4a317150d5
commit e7bf712c57
1 file changed
+2 -2
+2 -2
View File
@@ -202,8 +202,8 @@ are enabled by default.
### Type stripping in dependencies
To discourage package authors from publishing packages written in TypeScript,
Node.js will by default refuse to handle TypeScript files inside folders under
a `node_modules` path.
Node.js refuses to handle TypeScript files inside folders under a `node_modules`
path.
### Paths aliases