From 6bc2757074c1e5eaa2389aa2ab36806f04c6d2a0 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Mon, 7 Feb 2022 09:15:26 +0200 Subject: [PATCH] add npm files list + prepublish script --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cad12939..1c60f24a 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,13 @@ "amd": true } }, + "files": [ + "suncalc.js" + ], "scripts": { "pretest": "eslint suncalc.js test.js", - "test": "node test.js" + "test": "node test.js", + "prepublishOnly": "npm test" }, "jshintConfig": { "quotmark": "single",