Skip to content

Commit a4a0e68

Browse files
isaacswraithgar
authored andcommitted
chore: check less stuff into node_modules
We bundle our deps, but we don't need to bundle docs, changelogs, editorconfigs, test coverage reports, .github workflow definitions, lint configurations, and all the rest, which we never use. This cuts about 10% off of our publish artifact file size. ``` $ ls -laF npm-7.16.0-*.tgz -rw-r--r-- 1 isaacs staff 7174497 Jun 3 13:01 npm-7.16.0-release-next.tgz -rw-r--r-- 1 isaacs staff 6782377 Jun 3 13:00 npm-7.16.0-trim-node-modules.tgz $ ls -laF npm-7.16.0-*.tar -rw-r--r-- 1 isaacs staff 19020288 Jun 3 13:01 npm-7.16.0-release-next.tar -rw-r--r-- 1 isaacs staff 17474048 Jun 3 13:00 npm-7.16.0-trim-node-modules.tar ``` PR-URL: #3362 Credit: @isaacs Close: #3362 Reviewed-by: @nlf
1 parent f130a81 commit a4a0e68

File tree

364 files changed

+43
-39150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+43
-39150
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ link: uninstall
9595
node bin/npm-cli.js link -f --ignore-scripts
9696

9797
prune:
98+
node bin/npm-cli.js run resetdeps
9899
node bin/npm-cli.js prune --production --no-save --no-audit
99100
@[[ "$(shell git status -s)" != "" ]] && echo "ERR: found unpruned files" && exit 1 || echo "git status is clean"
100101

node_modules/.gitignore

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/README.md

-335
This file was deleted.

node_modules/@npmcli/ci-detect/README.md

-80
This file was deleted.

node_modules/@npmcli/config/README.md

-224
This file was deleted.

node_modules/@npmcli/disparity-colors/CHANGELOG.md

-6
This file was deleted.

node_modules/@npmcli/disparity-colors/README.md

-49
This file was deleted.

0 commit comments

Comments
 (0)