|
11 | 11 | "cs:check": "php-cs-fixer fix --dry-run --diff", |
12 | 12 | "cs:fix": "php-cs-fixer fix", |
13 | 13 | "psalm": "psalm.phar --no-cache", |
14 | | - "test:unit": "phpunit --config tests/phpunit.xml" |
| 14 | + "test:unit": "phpunit --config tests/phpunit.xml", |
| 15 | + "post-install-cmd": [ |
| 16 | + "@composer bin all update --ansi", |
| 17 | + "grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"", |
| 18 | + "composer dump-autoload" |
| 19 | + ], |
| 20 | + "post-update-cmd": [ |
| 21 | + "@composer bin all update --ansi", |
| 22 | + "grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"", |
| 23 | + "composer dump-autoload" |
| 24 | + ] |
15 | 25 | }, |
16 | 26 | "require": { |
17 | 27 | "php": "^8.1", |
| 28 | + "bamarni/composer-bin-plugin": "^1.8", |
18 | 29 | "fileeye/pel": "^0.12.0", |
19 | 30 | "james-heinrich/getid3": "^1.9" |
20 | 31 | }, |
21 | 32 | "require-dev": { |
22 | | - "nextcloud/coding-standard": "^1.1", |
23 | | - "psalm/phar": "6.*", |
24 | | - "nextcloud/ocp": "dev-master", |
25 | | - "phpunit/phpunit": "^9.5" |
| 33 | + "nextcloud/ocp": "dev-master" |
26 | 34 | }, |
27 | 35 | "config": { |
| 36 | + "allow-plugins": { |
| 37 | + "bamarni/composer-bin-plugin": true, |
| 38 | + "composer/package-versions-deprecated": true |
| 39 | + }, |
28 | 40 | "platform": { |
29 | 41 | "php": "8.1.0" |
30 | 42 | } |
| 43 | + }, |
| 44 | + "extra": { |
| 45 | + "bamarni-bin": { |
| 46 | + "bin-links": true, |
| 47 | + "target-directory": "vendor-bin", |
| 48 | + "forward-command": true |
| 49 | + } |
31 | 50 | } |
32 | 51 | } |
0 commit comments