mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-28 19:44:24 +00:00
"Prefix" was changed to "Global-Folder" but "Prefix" is still required for global tools to set up their commands into the correct location rather than localappdata. Example is azure-functions-core-tools. Both options can be specified concurrently and safely.
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"homepage": "https://yarnpkg.com/",
|
|
"description": "Node.js dependency manager",
|
|
"version": "1.17.3",
|
|
"license": "BSD-2-Clause",
|
|
"url": "https://yarnpkg.com/downloads/1.17.3/yarn-1.17.3.msi",
|
|
"hash": "46e618592076ff2882a5d7e1d4f8d0ffb8b29918a6366a1fea0f0bbdf145a4fa",
|
|
"persist": [
|
|
"cache",
|
|
"mirror",
|
|
"global"
|
|
],
|
|
"post_install": [
|
|
"yarn config set cache-folder \"$dir\\cache\"",
|
|
"yarn config set yarn-offline-mirror \"$dir\\mirror\"",
|
|
"yarn config set global-folder \"$dir\\global\"",
|
|
"yarn config set prefix \"$dir\\global\""
|
|
],
|
|
"uninstaller": {
|
|
"script": [
|
|
"Remove-Item $env:LOCALAPPDATA\\Yarn -Recurse -Force",
|
|
"Remove-Item $env:USERPROFILE\\.yarnrc -Force"
|
|
]
|
|
},
|
|
"env_add_path": [
|
|
"global\\node_modules\\.bin",
|
|
"Yarn\\bin"
|
|
],
|
|
"checkver": {
|
|
"url": "https://yarnpkg.com/latest-version",
|
|
"re": "([\\d.]+)"
|
|
},
|
|
"autoupdate": {
|
|
"url": "https://yarnpkg.com/downloads/$version/yarn-$version.msi"
|
|
},
|
|
"suggest": {
|
|
"Node.js": [
|
|
"nodejs",
|
|
"nodejs-lts",
|
|
"nvm",
|
|
"nvs"
|
|
]
|
|
}
|
|
}
|