From e14950ba99ad41a7e33eafcd60efee4f432f7051 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 17 Feb 2025 00:28:04 +0800 Subject: [PATCH] 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. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5