Fix migration scripts to skip checking for the system directory of live-plugin-manager

This commit is contained in:
yacchin1205 2024-06-01 02:50:28 +00:00 committed by SamTV12345
parent 8b6f39ac4f
commit d06513d39b

View file

@ -100,6 +100,10 @@ export const checkForMigration = async () => {
for (let file of files){ for (let file of files){
const moduleName = path.basename(file); const moduleName = path.basename(file);
if (moduleName === '.versions') {
// Skip the directory using live-plugin-manager
continue;
}
try { try {
await fs.access(path.join(node_modules, moduleName), fs.constants.F_OK); await fs.access(path.join(node_modules, moduleName), fs.constants.F_OK);
logger.debug(`plugin ${moduleName} already exists in node_modules`); logger.debug(`plugin ${moduleName} already exists in node_modules`);