From 035878c6984d23d991b225724c6455bafc0d4074 Mon Sep 17 00:00:00 2001 From: 1x-martin Date: Tue, 24 Jan 2017 16:29:35 +0100 Subject: [PATCH] Add main property to package.json to support vanilla require statement Currently you need to do `require('ez-plus/src/jquery.ez-plus.js')` to require the lib file. This would be shortened to `require('ez-plus')` with this property in package.json. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bb04d8e..eec229e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "ez-plus", + "main": "src/jquery.ez-plus.js", "title": "EZ Plus", "version": "1.1.21", "description": "A jQuery image zoom plug-in, with tints, easing and gallery integration.",