From 064ca71e89a865197e624feebfa72846615fe97e Mon Sep 17 00:00:00 2001 From: lukasIO Date: Fri, 20 Nov 2026 13:49:00 +0100 Subject: [PATCH] Leave test files out of the npm package The package ships src for go-to-definition, but `files: ["src"]` also published 77 test files, snapshots and test helpers. The `test` entry in .npmignore had no effect, because npm ignores the root .npmignore when `files` is set. Co-Authored-By: Claude Opus 5.5 --- .changeset/exclude-test-files.md | 5 +++++ package.json | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/exclude-test-files.md diff --git a/.changeset/exclude-test-files.md b/.changeset/exclude-test-files.md new file mode 100644 index 0000000000..2f54e80850 --- /dev/null +++ b/.changeset/exclude-test-files.md @@ -0,0 +1,5 @@ +--- +'livekit-client': patch +--- + +Leave test files and test helpers out of the published `src` folder. diff --git a/package.json b/package.json index fb2def3f1c..60070cf3c0 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,11 @@ }, "files": [ "dist", - "src" + "src", + "!src/**/*.test.ts", + "!src/**/__snapshots__", + "!src/test", + "!src/room/token-source/test-tokens.ts" ], "sideEffects": [ "./dist/livekit-client.e2ee.worker.js",