From 7669142107a9169b5e71c1a213a19c2db32fd6b5 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Tue, 18 Aug 2026 09:56:02 +0200 Subject: [PATCH 1/3] chore: Exclude scripts directory for NPM package archive --- .npmignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmignore b/.npmignore index 048b0b6..df5a3b2 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,7 @@ build docs test +scripts .eslintrc.json .eslintignore From ab2356229f1bf6bdeaba24aa66687059174c5c1a Mon Sep 17 00:00:00 2001 From: Robin Bolscher Date: Tue, 18 Aug 2026 10:29:40 +0200 Subject: [PATCH 2/3] chore: allowlist published files via package.json files instead of .npmignore Replaces the .npmignore denylist with an explicit files allowlist, so new top-level files and build output are excluded by default rather than shipped by accident. index.js is covered by npm's implicit main inclusion; index.d.ts is not, so types is listed explicitly. Verified against the published 3.6.0 tarball: index.js, index.d.ts and all 56 lib/ files are unchanged; only .nvmrc, .prettierrc, AGENTS.md, tsconfig.json and scripts/ are dropped. --- .npmignore | 9 --------- package.json | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index df5a3b2..0000000 --- a/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -build -docs -test -scripts - -.eslintrc.json -.eslintignore -.editorconfig -.github diff --git a/package.json b/package.json index cf6731f..84b61df 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,10 @@ "description": "Zigbee Cluster Library for Node.js", "main": "index.js", "types": "index.d.ts", + "files": [ + "index.d.ts", + "lib" + ], "scripts": { "test": "mocha --reporter list", "lint": "eslint .", From d4193b2a78e08d663797239be129208985b095f9 Mon Sep 17 00:00:00 2001 From: Robin Bolscher Date: Tue, 18 Aug 2026 10:55:59 +0200 Subject: [PATCH 3/3] chore: stop tracking .DS_Store The root .DS_Store was committed to the repository. It never reached the published package, since npm-packlist ignores .DS_Store by default, but it does not belong in git. Untrack it and add it to .gitignore so the Finder files under lib/, test/ and build/ stay out too. --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 1e02b4ac3428a4779f3f6b22d1f4caa01c1c82db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5Z<*_Hxw}kp&s|*t%s(HJqe-KgEt|f2bDIV#Rg(h+SH&ilE=_D@(p|) zXLh$@u?J5gb_RC8nVp&4%m>*Y#u)F+1`cC3V@yCpm;*yFjez-+F@CiuzGeq&s$DI z9<-dIA@g>-3HttFQCOnB=Nz5(?;alWr{eiV)60Qr21|`PopH4?%wtxbKVG<69mb^!XWZ3DJuyHGEHY5h zrj6(S3H&lkANh+ZWDx_zz&~SvSG!)f14Ws$^;>y()=Fr7Xebz0q5=Z?!X*F<+(&km eQ~M?A5a${!HR3EduF?VNBA^JNju`j_20j2CW>0kh diff --git a/.gitignore b/.gitignore index ff6157e..57bc860 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules build -.envrc \ No newline at end of file +.envrc +.DS_Store