From 44dcf0336646711f0fb5c913e83c9d8b53cdcbef Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Tue, 29 Oct 2024 13:39:55 -0600 Subject: [PATCH] Explicitly call out which files should be included in the published NPM package. This will keep tests, benchmarks, examples, and other non-essential files from making the package larger than it needs to be. The GitHub repository is correctly marked in the package file, so any user that wants these things can have ready access to them online. Fixes #78. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 8d25741..04effa6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,11 @@ "file", "server" ], + "files": [ + "index.js", + "lib", + "types" + ], "dependencies": { "@lukeed/ms": "^2.0.2", "escape-html": "~1.0.3",