Skip to content

Should nodejs/node#63869 (--experimental-strip-private-modules) land? - #1900

Open
github-actions[bot] wants to merge 6 commits into
mainfrom
votes/strip-private-modules
Open

github-actions[bot] wants to merge 6 commits into
mainfrom
votes/strip-private-modules

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Node.js refuses to strip types from TypeScript files under node_modules
and throws ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING. This keeps
uncompiled TypeScript from becoming the entry point of packages published
to a registry.

nodejs/node#63869 adds
--experimental-strip-private-modules. With the flag, a TypeScript file under
node_modules can be type stripped only if every package enclosing it in the
node_modules chain has "private": true in its root package.json. Nested
package.json files are ignored, and a non-private package anywhere in the
chain (for example, a published package that bundles a private one) refuses
stripping. npm-compatible clients refuse to publish a "private": true
package. The intended use case is workspace packages that are copied rather
than symlinked into node_modules, such as pnpm deploy output, Docker
build contexts and vendored code.
If the first option wins, the request for changes is dismissed and the pull
request lands once it has passed CI. If the second option wins, the pull
request is closed.

Vote instructions:

To close the vote, at least 3 secret holder(s)1 must run the following command: git node vote https://github.com/nodejs/TSC/pull/1900 --decrypt-key-part --post-comment

/cc @nodejs/tsc

Current estimated participation: 22.22%

Footnotes

  1. secret holders are folks who have access to the private key associated with a public key on hkps://keys.openpgp.org that references an email address listed on the TSC voting member list at the time of the opening of the vote. ↩

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.

5 participants