auto-dependency-installer-fix (!343)

Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/343
This commit is contained in:
Alex 2024-05-20 11:01:35 +00:00
parent bf528fd1de
commit d437b5b922

View File

@ -548,12 +548,13 @@ export class PreAkiModLoader implements IModLoader
os.platform() === "win32" ? "pnpm.exe" : "pnpm",
);
let command = `${pnpmPath} install `;
let command = `"${pnpmPath}" install `;
for (const [depName, depVersion] of dependenciesToInstall)
{
command += `${depName}@${depVersion} `;
}
this.logger.debug(`Running command: ${command}`);
execSync(command, { cwd: modPath });
// Delete the new blank package.json then rename the backup back to the original name