volta: Add version 1.0.1 (#1714)

* volta: Add version 1.0.0

* volta: v1.0.1
This commit is contained in:
Michael Tyson 2021-10-24 08:01:07 -04:00 committed by GitHub
parent b2dd94a136
commit 75aaeebf0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

49
bucket/volta.json Normal file
View File

@ -0,0 +1,49 @@
{
"homepage": "https://volta.sh/",
"description": "Volta is a hassle-free way to manage your JavaScript command-line tools",
"license": "BSD-2-Clause",
"version": "1.0.1",
"url": "https://github.com/volta-cli/volta/releases/download/v1.0.1/volta-1.0.1-windows.zip",
"hash": "3ebe6ae28738c19266f245284cdd28eec6fd237a69fd140ca9e35fa25a8d0c2b",
"installer": {
"script": [
"function UpdateExeFile([String] $original, [String] $file, [Switch] $Removal) {",
" if (Test-Path \"$persist_dir\\appdata\\bin\\$file\") { # persist new volta shims",
" Remove-Item \"$persist_dir\\appdata\\bin\\$file\" -Force",
" Copy-Item \"$dir\\$original\" \"$persist_dir\\appdata\\bin\\$file\"",
" } else { # or create new shims",
" if (!(Test-Path \"$persist_dir\\appdata\\bin\")) {",
" New-Item -Path \"$persist_dir\\appdata\\bin\" -ItemType Directory | Out-Null",
" }",
" Copy-Item \"$dir\\$original\" \"$persist_dir\\appdata\\bin\\$file\"",
" }",
" if ($Removal) {",
" Remove-Item \"$dir\\$original\" -Force",
" }",
"}",
"UpdateExeFile 'volta-shim.exe' 'node.exe'",
"UpdateExeFile 'volta-shim.exe' 'npm.exe'",
"UpdateExeFile 'volta-shim.exe' 'npx.exe'",
"UpdateExeFile 'volta-shim.exe' 'yarn.exe'",
"UpdateExeFile 'volta.exe' 'volta.exe' -Removal",
"UpdateExeFile 'volta-migrate.exe' 'volta-migrate.exe' -Removal",
"UpdateExeFile 'volta-shim.exe' 'volta-shim.exe' -Removal"
]
},
"env_set": {
"VOLTA_HOME": "$dir\\appdata"
},
"env_add_path": "appdata\\bin",
"persist": "appdata",
"checkver": {
"github": "https://github.com/volta-cli/volta"
},
"autoupdate": {
"url": "https://github.com/volta-cli/volta/releases/download/v$version/volta-$version-windows.zip"
},
"notes": [
"To use volta tab-completions, add following code to your PowerShell PROFILE:",
"",
"(& volta completions powershell) | Out-String | Invoke-Expression"
]
}