|
1 | 1 | { |
2 | 2 | "name": "nextcloud/viewer", |
3 | 3 | "config": { |
| 4 | + "allow-plugins": { |
| 5 | + "bamarni/composer-bin-plugin": true |
| 6 | + }, |
4 | 7 | "optimize-autoloader": true, |
5 | | - "classmap-authoritative": true, |
| 8 | + "sort-packages": true, |
6 | 9 | "platform": { |
7 | 10 | "php": "8.2" |
8 | 11 | }, |
|
12 | 15 | }, |
13 | 16 | "scripts": { |
14 | 17 | "post-install-cmd": [ |
15 | | - "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install --ansi", |
16 | | - "composer dump-autoload" |
| 18 | + "@composer bin all install --ansi" |
17 | 19 | ], |
18 | 20 | "post-update-cmd": [ |
19 | | - "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi", |
20 | | - "composer dump-autoload" |
| 21 | + "@composer bin all install --ansi" |
21 | 22 | ], |
| 23 | + "cs:fix": "php-cs-fixer fix", |
22 | 24 | "cs:check": "php-cs-fixer fix --dry-run --diff", |
23 | 25 | "cs:fix": "php-cs-fixer fix", |
24 | 26 | "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -print0 | xargs -0 -n1 php -l", |
25 | 27 | "psalm": "psalm --threads=1", |
26 | 28 | "psalm:update-baseline": "psalm --threads=1 --update-baseline", |
27 | 29 | "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", |
28 | | - "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" |
| 30 | + "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", |
| 31 | + "rector": "rector && composer cs:fix" |
| 32 | + }, |
| 33 | + "require": { |
| 34 | + "bamarni/composer-bin-plugin": "^1.8", |
| 35 | + "php": "^8.1" |
29 | 36 | }, |
30 | 37 | "require-dev": { |
31 | | - "bamarni/composer-bin-plugin": "^1.8" |
| 38 | + "nextcloud/coding-standard": "^1.2.0", |
| 39 | + "nextcloud/ocp": "dev-master" |
32 | 40 | } |
33 | 41 | } |
0 commit comments