auto-git:
[change] main.js
This commit is contained in:
7
main.js
7
main.js
@@ -487,10 +487,9 @@ app.whenReady().then(() => {
|
|||||||
// Auto-Verzeichnisstruktur
|
// Auto-Verzeichnisstruktur
|
||||||
const IGNORED_NAMES = [
|
const IGNORED_NAMES = [
|
||||||
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
|
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
|
||||||
'.cache', 'out', '.venv', '.mypy_cache', '__pycache__'
|
'.cache', 'out', '.venv', '.mypy_cache', '__pycache__', 'package-lock.json'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Hilfsfunktion: Dateinamen oder Ordner ignorieren?
|
|
||||||
function isIgnored(name) {
|
function isIgnored(name) {
|
||||||
return IGNORED_NAMES.includes(name);
|
return IGNORED_NAMES.includes(name);
|
||||||
}
|
}
|
||||||
@@ -508,9 +507,7 @@ app.whenReady().then(() => {
|
|||||||
list.push({ name: dirent.name, type: 'file' });
|
list.push({ name: dirent.name, type: 'file' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {}
|
||||||
// Permissions o.ä. ignorieren
|
|
||||||
}
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user