From f77a75833cf47d9016d6fd0e5ca6fc45d3e321ad Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Mon, 13 Jun 2016 19:59:13 -0700 Subject: [PATCH] Added main and browser fields This allows the package to be installed with npm directly from github as a dependency. Added this because there is no npm support yet. --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8db6166..d1cf2ca 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,10 @@ "name" : "Kenneth Cachia", "url" : "http://kennethcachia.com/" }, + "main": "background-check.js", + "browser": { + "index.js": "./background-check.min.js" + }, "homepage": "http://kennethcachia.com/background-check", "devDependencies": { "grunt": "~0.4.1", @@ -15,4 +19,4 @@ "grunt-contrib-copy": "~0.4.1", "assemble": "~0.4.2" } -} \ No newline at end of file +}