From a765b5608746f95556bc96e4e0b40a893f08409b Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Wed, 29 Oct 2025 18:21:48 +0100 Subject: [PATCH] Avoid publishing tests to npm Adds a `files` field to `package.json` to limit what gets published to npm. Currently tests make up about 75% of the package size on npm, so omitting them when publishing is a nice reduction in install size. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 340fb3f..0cbbbe1 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "1.0.3", "description": "A tiny inflate implementation", "main": "index.js", + "files": [ + "index.js" + ], "scripts": { "test": "mocha" },