From 3c17eb8ca5abff45271616813f727cf7440096bf Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:13:47 +0000 Subject: [PATCH] chore(publish): exclude all test files from npm package Update the files field to properly exclude test files: - Add `!examples/*.test.ts` to exclude example test files - Add `!src/**/*.test.ts` to exclude unit test files - Add `!src/**/*.test-d.ts` to exclude type test files The previous pattern `!**/*.test.ts` at the start didn't work because npm applies negation patterns only to already-included files. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f2b3d41..7d343b7 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,9 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "files": [ - "!example/*.test.ts", + "!examples/*.test.ts", + "!src/**/*.test-d.ts", + "!src/**/*.test.ts", "LICENSE", "README.md", "dist",