From e7bf712c5702aec11df9bf9a0e3d7b0c2e7152ae Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Tue, 2 Sep 2025 14:12:17 -0400 Subject: [PATCH] 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 Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Luigi Pinca Reviewed-By: Ethan Arrowood --- doc/api/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/typescript.md b/doc/api/typescript.md index 642e3f26db7..dbfc286d5f1 100644 --- a/doc/api/typescript.md +++ b/doc/api/typescript.md @@ -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