From 12e3d64e8bfc469743dee0a9754cb80c45827f4b Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 25 Jan 2023 18:24:02 +0100 Subject: [PATCH] #5123 Fix: Skip archive dir --- myt-push.js | 8 ++++++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/myt-push.js b/myt-push.js index ee3a26b..856fd14 100644 --- a/myt-push.js +++ b/myt-push.js @@ -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) { diff --git a/package-lock.json b/package-lock.json index 0de8a9f..08a2cb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index c0206ff..85abbbc 100644 --- a/package.json +++ b/package.json @@ -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",