From 1c41a8fa64e5e5acf886dda9a59fd79f375a82ec Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Tue, 16 Jun 2020 17:08:53 +0300 Subject: [PATCH] Publish only build artifacts This a bit reduce amount of published files and final package size. --- .npmignore | 0 package.json | 4 ++++ 2 files changed, 4 insertions(+) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index 9a8c4d5..6dfe791 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,10 @@ }, "main": "lib/index.js", "module": "esm/index.js", + "files": [ + "lib", + "esm" + ], "scripts": { "build": "babel src --out-dir lib && NODE_ENV=esm babel src --out-dir esm", "prepublish": "npm run build",