From 557eb05f3a1306ab299abbd8cff23115fd0756d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20St=C3=B6bich?= Date: Sat, 15 Aug 2020 02:27:28 +0200 Subject: [PATCH] reduce npm package size by adding files entry Add a files entry in package.json to add only files needed for execution to the npm bundle. --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 5fcc5259..a88a68ef 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,10 @@ "posttest": "npm run test:multirepo && aud --production", "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" }, + "files": [ + "index.*", + "lib/" + ], "devDependencies": { "@ljharb/eslint-config": "^17.1.0", "array.prototype.map": "^1.0.2",