Skip to content

Commit d7adf8b

Browse files
joshkelrichardlau
authored andcommitted
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 <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>
1 parent 9f53db7 commit d7adf8b

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
@@ -200,8 +200,8 @@ are enabled by default.
200200
### Type stripping in dependencies
201201

202202
To discourage package authors from publishing packages written in TypeScript,
203-
Node.js will by default refuse to handle TypeScript files inside folders under
204-
a `node_modules` path.
203+
Node.js refuses to handle TypeScript files inside folders under a `node_modules`
204+
path.
205205

206206
### Paths aliases
207207

0 commit comments

Comments
 (0)