File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
2626
2727 const lockfile = standalone ? exeLock : pnpmLock
2828 const packageJson = standalone ? BOOTSTRAP_EXE_PACKAGE : BOOTSTRAP_PNPM_PACKAGE
29- const installedVersion = standalone ? BOOTSTRAP_EXE_PACKAGE . dependencies [ '@pnpm/exe' ] : BOOTSTRAP_PNPM_PACKAGE . dependencies . pnpm
29+ const bootstrappedVersion = standalone ? BOOTSTRAP_EXE_PACKAGE . dependencies [ '@pnpm/exe' ] : BOOTSTRAP_PNPM_PACKAGE . dependencies . pnpm
3030 await writeFile ( path . join ( dest , 'package.json' ) , JSON . stringify ( packageJson ) )
3131 await writeFile ( path . join ( dest , 'package-lock.json' ) , JSON . stringify ( lockfile ) )
3232
@@ -92,7 +92,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
9292 }
9393 }
9494
95- info ( `Installed pnpm version: ${ installedVersion } ` )
95+ info ( `Installed pnpm version: ${ targetVersion ?? bootstrappedVersion } ` )
9696 return 0
9797}
9898
You can’t perform that action at this time.
0 commit comments