#5123 Fix: Skip archive dir
This commit is contained in:
parent
d5ffaccecf
commit
12e3d64e8b
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue