Skip to content

Commit 2ea31e5

Browse files
authored
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: #59652 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
1 parent 35053d8 commit 2ea31e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ are enabled by default.
206206
### Type stripping in dependencies
207207

208208
To discourage package authors from publishing packages written in TypeScript,
209-
Node.js will by default refuse to handle TypeScript files inside folders under
210-
a `node_modules` path.
209+
Node.js refuses to handle TypeScript files inside folders under a `node_modules`
210+
path.
211211

212212
### Paths aliases
213213

0 commit comments

Comments
 (0)