From 8946b6c864fc409d9c0fb14acec0ba4d57c6c018 Mon Sep 17 00:00:00 2001 From: Rob Halff Date: Thu, 26 Mar 2015 18:02:47 +0100 Subject: [PATCH] add browser field for browserify --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 43cbe5c..1bfc745 100644 --- a/package.json +++ b/package.json @@ -37,5 +37,10 @@ "test": "./node_modules/.bin/mocha --reporter spec --timeout 10000" }, "main": "index", + "browser": { + "main": "lib/datastore.js", + "./lib/customUtils.js": "./browser-version/browser-specific/lib/customUtils.js", + "./lib/storage.js": "./browser-version/browser-specific/lib/storage.js" + }, "licence": "MIT" }