From 35730b7c80a5574bcdf1e712e49d39987e7e4054 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Tue, 13 Nov 2018 21:47:31 +0000 Subject: [PATCH] fix: reduce npm package size Add files field to package.json so that the size of the published package is reduced by only including the files required (the bin and the dist folders) Closes #619 --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 13d11415..afe97db6 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,10 @@ "bin": { "showdown": "bin/showdown.js" }, + "files": [ + "bin", + "dist" + ], "devDependencies": { "chai": "^4.3.4", "grunt": "^1.4.1",