From 93445d163c61124494ae62322775ed388712a878 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 18 Sep 2021 21:23:50 +0100 Subject: [PATCH] Exclude test directory from npm package Note that files like package.json and LICENSE will still be included. https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files https://unpkg.com/browse/node-watch@0.7.1/ https://packagephobia.com/result?p=node-watch --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index b7a78a7..0222326 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "author": "yuanchuan (http://yuanchuan.name)", "main": "./lib/watch", "types": "./lib/watch.d.ts", + "files": [ + "lib/" + ], "homepage": "https://github.com/yuanchuan/node-watch#readme", "scripts": { "test": "mocha test/test.js --exit --slow 500"