From 08f7d956e83277dd40aad6df91179ab25e66748d Mon Sep 17 00:00:00 2001 From: stefnotch Date: Fri, 8 May 2020 15:00:55 +0200 Subject: [PATCH] Specify files to publish to npm Currently the `example` and `test` folders and various dotfiles such as `.travis.yml` are being published to npm. Considering that they make up about half of the file size of this package, it would be worthwhile to exclude them. This PR excludes them using the using the [`files`](https://docs.npmjs.com/files/package.json#files) whitelist in the `package.json`. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c59c87e..2184fea 100644 --- a/package.json +++ b/package.json @@ -39,5 +39,8 @@ "email": "mail@substack.net", "url": "http://substack.net" }, - "license": "MIT" + "license": "MIT", + "files": [ + "index.js" + ] }