From 335ed19698a28ee2d65d8f7d1b577ee1db8ba0d8 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Thu, 9 Jul 2020 21:17:48 +0300 Subject: [PATCH] Publish only necessary files in package To prevent publishing wrong files. --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 217b269..e13599f 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,14 @@ "bin": "bin/juice", "main": "index.js", "browser": "client.js", + "types": "juice.d.ts", + "files": [ + "bin", + "lib", + "client.js", + "index.js", + "juice.d.ts" + ], "scripts": { "test": "mocha --reporter spec && npm run test-typescript", "testcover": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec", @@ -26,7 +34,6 @@ "engines": { "node": ">=6.17.1" }, - "types": "juice.d.ts", "dependencies": { "cheerio": "^1.0.0-rc.3", "commander": "^5.1.0",