From 4d646d04bd4e25962b1028ac0559f5ff03f45b4a Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Wed, 29 Oct 2025 18:25:59 +0100 Subject: [PATCH] Avoid publishing tests to npm Currently this package includes 65 KB of test files in the code published to npm. This PR adds a `files` field to `package.json` to avoid publishing these unused files. Would you also be open to removing the `src` directory and sourcemaps in published files? That would further reduce the install size significantly. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 0c24756..dc730b9 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,11 @@ "import": "./index.js", "require": "./dist/main.cjs" }, + "files": [ + "dist", + "src", + "index.js" + ], "targets": { "module": false },