diff --git a/bin/mage-db-sync.js b/bin/mage-db-sync.js index 437e936..3ae3f55 100755 --- a/bin/mage-db-sync.js +++ b/bin/mage-db-sync.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../dist/mage-db-sync.js') \ No newline at end of file +require('../dist/mage-db-sync.js') diff --git a/dist/mage-db-sync.js b/dist/mage-db-sync.js index e6cfccf..6c2081f 100644 --- a/dist/mage-db-sync.js +++ b/dist/mage-db-sync.js @@ -9,6 +9,8 @@ const get_installed_path_1 = require("get-installed-path"); const console_1 = require("./utils/console"); const versionCheck_1 = tslib_1.__importDefault(require("./utils/versionCheck")); const kleur_1 = tslib_1.__importDefault(require("kleur")); +const process_1 = tslib_1.__importDefault(require("process")); +process_1.default.removeAllListeners('warning'); (0, get_installed_path_1.getInstalledPath)('mage-db-sync').then((path) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { // Lets make sure all required files are in place before running the tool let npmPath = path; @@ -64,10 +66,10 @@ const kleur_1 = tslib_1.__importDefault(require("kleur")); commander_1.default.on('command:*', () => { commander_1.default.help(); }); - commander_1.default.parse(process.argv); - if (!process.argv.slice(2).length) { + commander_1.default.parse(process_1.default.argv); + if (!process_1.default.argv.slice(2).length) { commander_1.default.outputHelp(); - process.exit(); + process_1.default.exit(); } })); //# sourceMappingURL=mage-db-sync.js.map \ No newline at end of file diff --git a/dist/mage-db-sync.js.map b/dist/mage-db-sync.js.map index de8a59c..9622307 100644 --- a/dist/mage-db-sync.js.map +++ b/dist/mage-db-sync.js.map @@ -1 +1 @@ -{"version":3,"file":"mage-db-sync.js","sourceRoot":"","sources":["../src/mage-db-sync.ts"],"names":[],"mappings":";;;AAAA,kEAA+B;AAC/B,qEAA4C;AAC5C,oDAAoB;AACpB,aAAa;AACb,2DAAmD;AACnD,6CAAsC;AACtC,gFAAgD;AAChD,0DAA0B;AAE1B,IAAA,qCAAgB,EAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAO,IAAS,EAAE,EAAE;IACtD,yEAAyE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++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "1.3.4", + "version": "1.3.5", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 8e05145..1dd9359 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "1.3.4", + "version": "1.3.5", "description": "Database synchronizer for Magento, based on Magerun", "author": { "name": "Jelle Siderius" diff --git a/src/mage-db-sync.ts b/src/mage-db-sync.ts index 01914c7..353c610 100644 --- a/src/mage-db-sync.ts +++ b/src/mage-db-sync.ts @@ -6,6 +6,9 @@ import {getInstalledPath} from 'get-installed-path' import {error} from "./utils/console"; import VersionCheck from "./utils/versionCheck"; import kleur from "kleur"; +import process from 'process'; + +process.removeAllListeners('warning'); getInstalledPath('mage-db-sync').then(async (path: any) => { // Lets make sure all required files are in place before running the tool