Skip to content

Commit

Permalink
Release 1.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jellesiderius committed Jan 30, 2024
1 parent ec98c76 commit 9830b47
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
11 changes: 11 additions & 0 deletions dist/tasks/checksTask.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/tasks/checksTask.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.2.8",
"version": "1.2.9",
"description": "Database synchronizer for Magento, based on Magerun",
"author": {
"name": "Jelle Siderius"
Expand Down
15 changes: 15 additions & 0 deletions src/tasks/checksTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ class ChecksTask {
}
);

// Check if vendor folder exists before downloading
this.checkTasks.push(
{
title: 'Checking if vendor/autoload.php file exists',
task: async (): Promise<Boolean> => {
let vendorFileLocation = config.settings.currentFolder + '/vendor/autoload.php';
if (fs.existsSync(vendorFileLocation)) {
return true;
}

throw new Error(`vendor/autoload.php is missing, make sure ${vendorFileLocation} exists.`);
}
}
);

this.checkTasks.push(
{
title: 'Checking if database host is set to localhost',
Expand Down

0 comments on commit 9830b47

Please sign in to comment.