redo thing

This commit is contained in:
2026-05-20 18:13:41 +02:00
parent f8e72ac5b3
commit 59d7db73f1
+5 -4
View File
@@ -26,10 +26,11 @@ function parsePluginConfig(filePath) {
const destinationDir = path.join(__dirname, '../web/js/plugins', path.dirname(pluginConfig.frontEndPath));
// Check if the source path exists
if (!fs.existsSync(sourcePath)) {
console.error(`Error: source path ${sourcePath} does not exist.`);
return pluginConfig;
}
const destinationDir = path.join(
__dirname,
'../web/js/plugins',
path.relative(pluginsDir, path.dirname(sourcePath))
);
// Check if the destination directory exists, if not, create it
if (!fs.existsSync(destinationDir)) fs.mkdirSync(destinationDir, { recursive: true }); // Create directory recursively