Skip to content

Commit

Permalink
Release 1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jellesiderius committed Aug 3, 2023
1 parent ac97530 commit f50f828
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion dist/mage-db-sync.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mage-db-sync.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage-db-sync",
"version": "1.1.7",
"version": "1.1.8",
"description": "Database synchronizer for Magento, based on Magerun",
"author": {
"name": "Jelle Siderius"
Expand Down
6 changes: 5 additions & 1 deletion src/mage-db-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import fs from 'fs';
import {getInstalledPath} from 'get-installed-path'
import {error} from "./utils/console";
import VersionCheck from "./utils/versionCheck";
import kleur from "kleur";

getInstalledPath('mage-db-sync').then(async (path: any) => {
// Lets make sure all required files are in place before running the tool
Expand Down Expand Up @@ -37,11 +38,14 @@ getInstalledPath('mage-db-sync').then(async (path: any) => {
const packageJson = require('../package.json')
let versionCheck = new VersionCheck();
await versionCheck.getToolVersions();
let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\nGithub Page: https://github.com/jellesiderius/mage-db-sync\nDocs: https://github.com/jellesiderius/mage-db-sync/wiki\nReport an issue: https://github.com/jellesiderius/mage-db-sync/issues`;
let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\n• Github Page: https://github.com/jellesiderius/mage-db-sync\n• Docs: https://github.com/jellesiderius/mage-db-sync/wiki\n• Report an issue: https://github.com/jellesiderius/mage-db-sync/issues`;
if (versionCheck.config.currentVersion < versionCheck.config.latestVersion) {
description = `${description}\nRun 'mage-db-sync self-update' to download the newest version: ${versionCheck.config.latestVersion}`;
}

description += `\n\n${kleur.bgYellow(kleur.bold('Sponsored by:'))}
• HYPR (https://www.hypershop.nl)`;

let deleteFiles = [
`${npmPath}/dist/controllers/importController.js`,
`${npmPath}/dist/commands/importCommand.js`
Expand Down

0 comments on commit f50f828

Please sign in to comment.