diff --git a/composer.json b/composer.json index 68c36c0..11e6d55 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "hyperf/snowflake": "~2.2.0", "hyperf/validation": "~2.2.0", "nette/php-generator": "^3.4", - "xxtime/flysystem-aliyun-oss": "^1.5", + "xxtime/flysystem-aliyun-oss": "~1.5", "yadakhov/insert-on-duplicate-key": "^1.2", "zoujingli/ip2region": "^1.0" }, @@ -104,5 +104,27 @@ "prefer-stable": true, "config": { "sort-packages": true + }, + "scripts": { + "post-root-package-install": [], + "test": "vendor/bin/pest $1", + "cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes", + "analyse": "vendor/bin/phpstan analyse $1", + "ci": [ + "@analyse publish/ src/ tests/", + "@cs-fix", + "@test --ci", + "echo CI Success" + ] + }, + "repositories": { + "lux-map": { + "type": "composer", + "url": "https://satis.luxcreo.cn/" + }, + "packagist": { + "type": "composer", + "url": "https://mirrors.cloud.tencent.com/composer/" + } } }