]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: explictly exclude node_modules/.bin from npm files
authorHaoqun Jiang <haoqunjiang@gmail.com>
Sun, 16 Feb 2025 16:28:04 +0000 (00:28 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Sun, 16 Feb 2025 16:30:54 +0000 (00:30 +0800)
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.

package.json

index 99f32ecfc42bab456dce19a22576ce7ac516ff66..836f9e3045b7659751d8c9b1f1c4ccf39bb3ab00 100644 (file)
@@ -10,7 +10,8 @@
   "files": [
     "locales",
     "outfile.cjs",
-    "template"
+    "template",
+    "!template/**/node_modules/.bin/*"
   ],
   "engines": {
     "node": ">=v18.3.0"