forked from ScoopInstaller/Scoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
40 lines (40 loc) · 1.37 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": "https://github.com/composer/composer/blob/master/LICENSE",
"version": "1.5.6",
"url": "https://getcomposer.org/download/1.5.6/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 -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": "25e75d72818c4f1d46b3ae47a8deaaf4ef25c87198329d4a6ee53601b00459e5",
"checkver": {
"github": "https://github.com/composer/composer"
},
"autoupdate": {
"url": "https://getcomposer.org/download/$version/composer.phar"
}
}