From 858d9895bc0271b5b193923a8a0c930d1e88d488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Tue, 18 May 2021 14:17:45 +0200 Subject: [PATCH] add files & prepublishOnly task --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 25da8b3..d3be90b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,11 @@ { "name": "@seald-io/nedb", "version": "2.0.0-0", + "files": [ + "lib/**/*.js", + "browser-version/**/*.js", + "index.js" + ], "author": { "name": "Timothée Rebours", "email": "tim@seald.io", @@ -64,7 +69,8 @@ "test": "mocha --reporter spec --timeout 10000", "build:browser": "webpack && webpack --optimization-minimize", "pretest:browser": "npm run build:browser", - "test:browser": "xvfb-maybe karma start karma.conf.local.js" + "test:browser": "xvfb-maybe karma start karma.conf.local.js", + "prepublishOnly": "npm run build:browser" }, "main": "index.js", "browser": "browser-version/out/nedb.min.js",