Skip to content

Commit

Permalink
fix: explictly exclude node_modules/.bin from npm files
Browse files Browse the repository at this point in the history
I don't know why .gitignore exclusion doesn't work for these files,
but both pnpm & npm packed them, as a result they are present in the
tarball: https://unpkg.com/browse/[email protected]/template/base/node_modules/.bin/

Explicitly excluding them from the `files` field can reduce the unpacked
size by quite a few KBs.
  • Loading branch information
haoqunjiang committed Feb 16, 2025
1 parent e605ee6 commit e14950b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"files": [
"locales",
"outfile.cjs",
"template"
"template",
"!template/**/node_modules/.bin/*"
],
"engines": {
"node": ">=v18.3.0"
Expand Down

0 comments on commit e14950b

Please sign in to comment.