npm distribution debloat - #199
Closed
Camlan1 wants to merge 3 commits into
Closed
Conversation
Camlan1
marked this pull request as draft
June 13, 2026 07:49
Camlan1
force-pushed
the
cleanup/npm-distribution
branch
4 times, most recently
from
June 13, 2026 09:17
ce87c37 to
c5e41a8
Compare
Camlan1
marked this pull request as ready for review
June 13, 2026 09:26
Camlan1
force-pushed
the
cleanup/npm-distribution
branch
from
June 14, 2026 05:59
c5e41a8 to
8f4a4e6
Compare
…leaner npm distribution Keeps `src/` files out of consumers' type checking.
Camlan1
force-pushed
the
cleanup/npm-distribution
branch
from
June 14, 2026 06:24
8f4a4e6 to
eca838b
Compare
Contributor
Author
|
Forced pushed to drop the ESM output due to default export issues. Sticking with CommonJS only, which aligns with the existing js-confuser implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current package ships dev files (
dev/,.github/, etc.) bloating the tarball significantly, 49.5MB unpacked across 623 files. Switches from a 137-line.npmignoreblacklist to afileswhitelist, reducing it to 277.2 KB across 5 files (99.44% reduction).Also replaces Babel with tsdown to emit proper compiled
.d.tsfiles. Previouslyindex.d.tspointed at rawsrc/files, pulling them into consumers' type checking.