forked from ScoopInstaller/Scoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
40 lines (40 loc) · 1.36 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"homepage": "https://getcomposer.org/",
"license": "MIT",
"version": "1.7.1",
"url": "https://getcomposer.org/download/1.7.1/composer.phar",
"bin": "composer.ps1",
"persist": "home",
"env_set": {
"COMPOSER_HOME": "$persist_dir\\home"
},
"env_add_path": "home\\vendor\\bin",
"pre_install": [
"echo 'if($args.length -eq 1 -and ($args -eq \"selfupdate\" -or $args -eq \"self-update\")) { & scoop update composer }' | out-file \"$dir\\composer.ps1\"",
"echo 'else { & php (join-path $psscriptroot \"composer.phar\") @args }' | out-file \"$dir\\composer.ps1\" -append"
],
"post_install": [
"$och = \"$env:APPDATA\\Composer\"",
"if(Test-Path $och) {",
"Write-Host -F yellow \"Moving old 'COMPOSER_HOME' to '$persist_dir\\home'\"",
"Move-Item -Force \"$och\\*\" \"$persist_dir\\home\"",
"Remove-Item -Force \"$och\"",
"}"
],
"suggest": {
"PHP": [
"php",
"php-nts"
]
},
"notes": [
"'composer selfupdate' is aliased to 'scoop update composer'"
],
"hash": "1c0e95dc3f33985f9eeabb6f57896c0f9d46b7c9e70ad7bf2210a5508869a8fa",
"checkver": {
"github": "https://github.com/composer/composer"
},
"autoupdate": {
"url": "https://getcomposer.org/download/$version/composer.phar"
}
}