Skip to content

Commit

Permalink
fix(pnpm): set to 9.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Oct 16, 2024
1 parent c781a44 commit d64281d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ try {
console.log(`Removing external dependencies: ${uninstallDeps.join(', ')} before @electron/rebuild kicks in`);
if (uninstallDeps.length > 0) {
for (const dep of uninstallDeps) {
execSync(`pnpm remove ${dep}`, {

const command = `pnpm remove ${dep}`;
console.log(`Running: ${command}`);
execSync(command, {
stdio: 'inherit',
});
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/install/install-pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ function detectArch(): string {
return arch
}

const PNPM_VERSION = '9.12.2';

export async function downloadAndInstallPnpm(): Promise<void> {
const platform = detectPlatform()
const arch = detectArch()
Expand All @@ -96,7 +98,7 @@ export async function downloadAndInstallPnpm(): Promise<void> {

let version: string
const preferredVersion =
process.env.PNPM_VERSION || "latest"
process.env?.PNPM_VERSION || PNPM_VERSION

if (versionData["dist-tags"][preferredVersion]) {
version = versionData["dist-tags"][preferredVersion]
Expand Down

0 comments on commit d64281d

Please sign in to comment.