Skip to content

Commit 61742bf

Browse files
committed
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 ```
1 parent e01149c commit 61742bf

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/README.md

Lines changed: 0 additions & 335 deletions
This file was deleted.

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

Lines changed: 0 additions & 80 deletions
This file was deleted.

node_modules/@npmcli/config/README.md

Lines changed: 0 additions & 224 deletions
This file was deleted.

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

Lines changed: 0 additions & 6 deletions
This file was deleted.

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

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)