diff --git a/bin/aemsync b/bin/aemsync index 0d47c94..a799f0c 100755 --- a/bin/aemsync +++ b/bin/aemsync @@ -1,2 +1,3 @@ #!/usr/bin/env node -require('../index') +const aemsync = require('../index') +aemsync.main() diff --git a/index.js b/index.js index 918bbc5..b16d58a 100644 --- a/index.js +++ b/index.js @@ -62,5 +62,8 @@ if (require.main === module) { main() } -module.exports.Watcher = Watcher -module.exports.Pusher = Pusher +module.exports = { + main: main, + Watcher: Watcher, + Pusher: Pusher +} diff --git a/package.json b/package.json index dcbc3dd..07653f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aemsync", - "version": "1.0.0-beta.2", + "version": "1.0.0-beta.3", "description": "Adobe AEM Synchronization Tool", "author": "Michal Kochel ", "keywords": [