-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[meta] ship only the dist #504
Conversation
Important Auto Review SkippedAuto reviews are limited to the following labels: coderabbit. Please add one of these labels to enable auto reviews. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
828f37e
to
ec2e69f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a) the "files" field is dangerous and should never be used; this is what npmignore
is for
b) this breaks what "main" is; the dist is intentionally never used in modern toolchains and will be removed entirely in v7
c) the tests are quite intentionally shipped and will forever be.
Duplicate of #429. Duplicate of #400. Duplicate of #389. Duplicate of #356. Duplicate of #250.
This is also the same as browserify/resolve#308; please stop sending unsolicited PRs. Nobody is accidentally shipping tests at this point. |
This will reduce your on-disk footprint from 300k to ~56k, and your package tar from 78k to 23k :)
I see you do care about your footprint, but you ship your entire repo, and your entry point was the
lib/index
...Here's your current state:
And the diff in result of
npm pack
: