From: Haoqun Jiang Date: Sun, 16 Feb 2025 16:28:04 +0000 (+0800) Subject: fix: explictly exclude node_modules/.bin from npm files X-Git-Tag: v3.14.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e14950ba99ad41a7e33eafcd60efee4f432f7051;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: explictly exclude node_modules/.bin from npm files 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/create-vue@3.14.1/template/base/node_modules/.bin/ Explicitly excluding them from the `files` field can reduce the unpacked size by quite a few KBs. --- diff --git a/package.json b/package.json index 99f32ecf..836f9e30 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "files": [ "locales", "outfile.cjs", - "template" + "template", + "!template/**/node_modules/.bin/*" ], "engines": { "node": ">=v18.3.0"