From 84571a852eb1200c067bd862f7c117ad09580964 Mon Sep 17 00:00:00 2001 From: Jelle Siderius Date: Mon, 19 Jul 2021 01:43:37 +0200 Subject: [PATCH] Release 0.3.0 --- dist/mage-db-sync.js | 6 ++++++ dist/mage-db-sync.js.map | 2 +- package-lock.json | 2 +- package.json | 2 +- src/mage-db-sync.ts | 8 ++++++++ 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/dist/mage-db-sync.js b/dist/mage-db-sync.js index 5f9d497..bfa6226 100644 --- a/dist/mage-db-sync.js +++ b/dist/mage-db-sync.js @@ -47,6 +47,12 @@ get_installed_path_1.getInstalledPath('mage-db-sync').then((path) => tslib_1.__a if (fs_1.default.existsSync(`${npmPath}/dist/controllers/importController.js.map`)) { fs_1.default.unlinkSync(`${npmPath}/dist/controllers/importController.js.map`); } + if (fs_1.default.existsSync(`${npmPath}/dist/commands/importCommand.js`)) { + fs_1.default.unlinkSync(`${npmPath}/dist/controllers/importCommand.js`); + } + if (fs_1.default.existsSync(`${npmPath}/dist/commands/importCommand.js.map`)) { + fs_1.default.unlinkSync(`${npmPath}/dist/controllers/importCommand.js.map`); + } })); commander_1.default .version(packageJson.version) diff --git a/dist/mage-db-sync.js.map b/dist/mage-db-sync.js.map index 6d96eeb..2245205 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,6CAAsD;AACtD,gFAAgD;AAEhD,qCAAgB,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAO,IAAS,EAAE,EAAE;IACtD,yEAAyE;IACzE,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,YAAY,GAAG,KAAK,CAAC;IACzB,IAAI,aAAa,GAAG;QAChB,6BAA6B;QAC7B,sB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L,CAAC,CAAA,CAAC,CAAC;IAEH,mBAAO;SACF,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;SAC5B,KAAK,CAAC,qBAAqB,CAAC;SAC5B,WAAW,CAAC,WAAW,CAAC,CAAA;IAE7B,mBAAO,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,mBAAO,CAAC,IAAI,EAAE,CAAA;IAClB,CAAC,CAAC,CAAA;IAEF,mBAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE;QAC/B,mBAAO,CAAC,UAAU,EAAE,CAAA;QACpB,OAAO,CAAC,IAAI,EAAE,CAAA;KACjB;AACL,CAAC,CAAA,CAAC,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 97ddf12..39a5115 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "0.2.9", + "version": "0.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 52c78f7..c3847cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "0.2.9", + "version": "0.3.0", "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 9be7c9c..aac3a78 100644 --- a/src/mage-db-sync.ts +++ b/src/mage-db-sync.ts @@ -51,6 +51,14 @@ getInstalledPath('mage-db-sync').then(async (path: any) => { if (fs.existsSync(`${npmPath}/dist/controllers/importController.js.map`)) { fs.unlinkSync(`${npmPath}/dist/controllers/importController.js.map`) } + + if (fs.existsSync(`${npmPath}/dist/commands/importCommand.js`)) { + fs.unlinkSync(`${npmPath}/dist/controllers/importCommand.js`) + } + + if (fs.existsSync(`${npmPath}/dist/commands/importCommand.js.map`)) { + fs.unlinkSync(`${npmPath}/dist/controllers/importCommand.js.map`) + } }); program