#5123 Fix: Skip archive dir

This commit is contained in:
Juan Ferrer 2023-01-25 18:24:02 +01:00
parent d5ffaccecf
commit 12e3d64e8b
3 changed files with 9 additions and 5 deletions

View File

@ -146,12 +146,16 @@ class Push extends Command {
return /\.undo\.sql$/.test(script);
}
const skipFiles = new Set([
'README.md',
'.archive'
]);
if (await fs.pathExists(versionsDir)) {
const versionDirs = await fs.readdir(versionsDir);
for (const versionDir of versionDirs) {
if (versionDir == 'README.md')
continue;
if (skipFiles.has(versionDir)) continue;
const dirVersion = myt.parseVersionDir(versionDir);
if (!dirVersion) {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@verdnatura/myt",
"version": "1.5.11",
"version": "1.5.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@verdnatura/myt",
"version": "1.5.11",
"version": "1.5.12",
"license": "GPL-3.0",
"dependencies": {
"@sqltools/formatter": "^1.2.5",

View File

@ -1,6 +1,6 @@
{
"name": "@verdnatura/myt",
"version": "1.5.11",
"version": "1.5.12",
"author": "Verdnatura Levante SL",
"description": "MySQL version control",
"license": "GPL-3.0",