{
"version": "12.22.0",
"description": "A fast and disk space efficient Node package manager.",
"homepage": "https://pnpm.io/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/pnpm/pnpm/releases/download/v12.22.0/pnpm-win32-x64.zip",
"hash": "0a9c1bc147202089b12d91f43349f6f9ae26df191ee704dee313ba3f9a0a8ffe"
},
"arm64": {
"url": "https://github.com/pnpm/pnpm/releases/download/v12.22.0/pnpm-win32-arm64.zip",
"hash": "3e423cb1b969b7e1cc02107b7414e03aca8bc9b0081f6cce0f697041a72a1f20"
}
},
"bin": [
"pnpm.exe",
[
"pnpm.exe",
"pn"
],
[
"pnpm.exe",
"pnpx",
"dlx"
],
[
"pnpm.exe",
"pnx",
"dlx"
]
],
"post_install": [
"# Specify the full binary path to avoid binary collision with executables in PATH",
"& \"$dir\\pnpm.exe\" config set storeDir \"$dir\\store\"",
"& \"$dir\\pnpm.exe\" config set cacheDir \"$dir\\cache\"",
"& \"$dir\\pnpm.exe\" config set stateDir \"$dir\\state\""
],
"env_add_path": "bin",
"env_set": {
"PNPM_HOME": "$dir"
},
"persist": [
"bin",
"global",
"store",
"cache",
"state"
],
"checkver": {
"github": "https://api.github.com/repos/pnpm/pnpm/releases",
"script": [
"# Using checkver script to check through all release tags",
"$releases = $page | ConvertFrom-Json -ErrorAction Ignore",
"$latest_ver = [Version]::new(0,0,0,0) # note: Powershell 5 does not support casting 'int' or 'float' to 'System.Version'",
"$releases | ForEach-Object {",
" if (!($_.tag_name -match '([\\d.]+)')) { return }",
" if ($_.prerelease) { return }",
" $ver = [Version]::new($matches[1])",
" if ($ver -gt $latest_ver) { $latest_ver = $ver }",
"}",
"if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; return }",
"Write-Output $latest_ver"
],
"regex": "([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win32-x64.zip"
},
"arm64": {
"url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win32-arm64.zip"
}
}
}
}