mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-16 16:23:54 +00:00
accounting for bootstrapped version
This commit is contained in:
parent
2663d44897
commit
069eed2362
@ -26,7 +26,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
|
||||
const lockfile = standalone ? exeLock : pnpmLock
|
||||
const packageJson = standalone ? BOOTSTRAP_EXE_PACKAGE : BOOTSTRAP_PNPM_PACKAGE
|
||||
const installedVersion = standalone ? BOOTSTRAP_EXE_PACKAGE.dependencies['@pnpm/exe'] : BOOTSTRAP_PNPM_PACKAGE.dependencies.pnpm
|
||||
const bootstrappedVersion = standalone ? BOOTSTRAP_EXE_PACKAGE.dependencies['@pnpm/exe'] : BOOTSTRAP_PNPM_PACKAGE.dependencies.pnpm
|
||||
await writeFile(path.join(dest, 'package.json'), JSON.stringify(packageJson))
|
||||
await writeFile(path.join(dest, 'package-lock.json'), JSON.stringify(lockfile))
|
||||
|
||||
@ -92,7 +92,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
}
|
||||
}
|
||||
|
||||
info(`Installed pnpm version: ${installedVersion}`)
|
||||
info(`Installed pnpm version: ${targetVersion ?? bootstrappedVersion}`)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user