From d822796b4787bf18742a2c7ef48ce872da0934a4 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Thu, 4 Nov 2021 18:15:43 +0100 Subject: [PATCH] Exclude test directory from npm package Some security scanner at a customer showed that as high severity. While this is not critical, it's good to reduce the package size at the same time. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 364aecb..e78e919 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "./": "./" }, + "files": ["index.js", "index.mjs", "index.d.ts"], "scripts": { "test": "standard && ava -v test/*.test.js && tsd" },