2025-10-14 12:31:49 +00:00

55 lines
2.1 KiB
JSON

{
"version": "10.18.3",
"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/v10.18.3/pnpm-win-x64.exe#/pnpm.exe",
"hash": "8a525ed3a9ec7c9d29da13943c0ae20ee110fc237e82f67029e5a5be985eb2d3"
},
"arm64": {
"url": "https://github.com/pnpm/pnpm/releases/download/v10.18.3/pnpm-win-arm64.exe#/pnpm.exe",
"hash": "cc06f85b32d594677e917a181126ff9c33a4ec3d6937725f4292e541b1106dff"
}
},
"bin": [
"pnpm.exe",
[
"pnpm.exe",
"pnpx",
"dlx"
]
],
"checkver": {
"script": [
"# Using checkver script to check through all release tags",
"$auth = Get-GitHubToken",
"$head = @{}",
"if($auth) { $head.add('authorization', \"Bearer $auth\") }",
"$url = 'https://api.github.com/repositories/50565430/releases'",
"$latest_ver = [Version]::new(0,0,0,0) # note: Powershell 5 does not support casting 'int' or 'float' to 'System.Version'",
"$releases = $(Invoke-WebRequest -Headers $head $url).Content | ConvertFrom-Json",
"$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'\"; continue }",
"Write-Output $latest_ver"
],
"regex": "([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win-x64.exe#/pnpm.exe"
},
"arm64": {
"url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win-arm64.exe#/pnpm.exe"
}
}
}
}