diff --git a/moment-recur.js b/moment-recur.js index 4fcadc6..b57a0f4 100644 --- a/moment-recur.js +++ b/moment-recur.js @@ -1,6 +1,16 @@ (function (root, factory) { if (typeof exports === 'object') { - module.exports = factory(require('moment')); + var moment; + try { + moment = require('moment'); + } catch(err) { + } + try { + moment = require('moment-timezone'); + } catch (err) { + + } + module.exports = factory(moment); } else if (typeof define === 'function' && define.amd) { define('moment-recur', ['moment'], factory); } else { diff --git a/package.json b/package.json index 8c27762..b77cc86 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,6 @@ "karma-jasmine": "~0.3.4" }, "scripts": { - "test": "gulp test", - "preinstall": "npm install bower gulp", - "postinstall": "bower install" + "test": "gulp test" } }