|
17 | 17 | }
|
18 | 18 | ],
|
19 | 19 | "require": {
|
20 |
| - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", |
21 |
| - "remorhaz/php-json-data": "^0.6", |
22 |
| - "remorhaz/php-unilex": "^0.5.2" |
| 20 | + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", |
| 21 | + "remorhaz/php-json-data": "^0.7", |
| 22 | + "remorhaz/php-unilex": "^0.5.3" |
23 | 23 | },
|
24 | 24 | "require-dev": {
|
25 |
| - "phpunit/phpunit": "^9.6.13 || ^10", |
26 |
| - "infection/infection": "^0.26.19 || ^0.27.2", |
27 |
| - "squizlabs/php_codesniffer": "^3.7.2" |
| 25 | + "bamarni/composer-bin-plugin": "^1.8", |
| 26 | + "phpunit/phpunit": "^10.1 || ^11" |
28 | 27 | },
|
29 | 28 | "autoload": {
|
30 | 29 | "psr-4": {
|
|
43 | 42 | "remorhaz/php-json-patch": "Uses JSON Pointers to implement the declarative way of altering JSON data (RFC-6902)"
|
44 | 43 | },
|
45 | 44 | "scripts": {
|
| 45 | + "post-update-cmd": ["@phive-install"], |
| 46 | + "post-install-cmd": ["@phive-install"], |
| 47 | + "phive-install": [ |
| 48 | + "`if [ -f tools/phive ]; then echo 'tools/'; fi`phive install --trust-gpg-keys C5095986493B4AA0" |
| 49 | + ], |
46 | 50 | "build": [
|
47 | 51 | "vendor/bin/unilex build-token-matcher --desc=\"JSON Pointer token matcher.\" spec/LexerSpec.php generated/TokenMatcher.php",
|
48 | 52 | "vendor/bin/unilex build-lookup-table --type=LL_1 --symbol=Remorhaz\\\\JSON\\\\Pointer\\\\Parser\\\\SymbolType --token=Remorhaz\\\\JSON\\\\Pointer\\\\Parser\\\\TokenType --desc=\"JSON Pointer parser LL(1) lookup table.\" spec/GrammarSpec.php generated/LookupTable.php",
|
49 |
| - "vendor/bin/phpcbf -p generated/; if [ $? -eq 1 ]; then exit 0; fi" |
| 53 | + "vendor-bin/cs/vendor/bin/phpcbf -p generated/; if [ $? -eq 1 ]; then exit 0; fi" |
50 | 54 | ],
|
51 | 55 | "test-cs": [
|
52 |
| - "vendor/bin/phpcs -sp" |
| 56 | + "vendor-bin/cs/vendor/bin/phpcs -sp" |
53 | 57 | ],
|
54 | 58 | "test-unit": [
|
55 | 59 | "vendor/bin/phpunit --coverage-clover=build/logs/clover.xml --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml"
|
|
61 | 65 | "infection": [
|
62 | 66 | "@test-unit",
|
63 | 67 | "mkdir -p ./build/logs",
|
64 |
| - "vendor/bin/infection --coverage=build/logs --threads=4 --no-progress --skip-initial-tests" |
| 68 | + "tools/infection --coverage=build/logs --threads=4 --no-progress --skip-initial-tests" |
65 | 69 | ]
|
66 | 70 | },
|
67 | 71 | "config": {
|
68 | 72 | "allow-plugins": {
|
69 |
| - "infection/extension-installer": true |
| 73 | + "bamarni/composer-bin-plugin": true |
| 74 | + }, |
| 75 | + "sort-packages": true |
| 76 | + }, |
| 77 | + "extra": { |
| 78 | + "bamarni-bin": { |
| 79 | + "bin-links": false, |
| 80 | + "forward-command": true |
70 | 81 | }
|
71 | 82 | }
|
72 | 83 | }
|
0 commit comments