diff --git a/composer.json b/composer.json index 617867c74..ba8420ddc 100644 --- a/composer.json +++ b/composer.json @@ -1,32 +1,25 @@ { "name": "myparcelnl/woocommerce", - "version": "5.0.0", + "description": "Export your WooCommerce orders to MyParcel and print labels", + "license": "MIT", "require": { - "myparcelnl/pdk": "^2.0.0", "guzzlehttp/guzzle": "^7.5.0", - "psr/log": "*" - }, - "scripts": { - "analyse": "php -dmemory_limit=-1 vendor/bin/phpstan analyse", - "analyse:generate": "composer run analyse -- --generate-baseline phpstan-baseline.php --allow-empty-baseline", - "analyze": "composer run analyse", - "analyze:generate": "composer run analyse:generate", - "test": "vendor/bin/pest", - "test:coverage": "php -dpcov.enabled=1 vendor/bin/pest --coverage-clover=coverage.xml" + "myparcelnl/pdk": "^2.0.0", + "psr/log": "^1.1 || ^2.0 || ^3.0" }, "require-dev": { "humbug/php-scoper": "^0.17.5", - "pestphp/pest": ">= 1", + "pestphp/pest": ">= 1.0", "php-stubs/woocommerce-stubs": "^8.0", "phpstan/phpstan": "^1.10", - "spatie/pest-plugin-snapshots": ">= 1", + "spatie/pest-plugin-snapshots": ">= 1.0", "szepeviktor/phpstan-wordpress": "^1.3" }, "minimum-stability": "dev", "prefer-stable": true, "autoload": { "psr-4": { - "MyParcelNL\\WooCommerce\\": "src" + "MyParcelNL\\WooCommerce\\": "src/" }, "files": [ "src/functions.php" @@ -34,11 +27,11 @@ }, "autoload-dev": { "psr-4": { - "": "tests/factories", - "MyParcelNL\\Pdk\\": "vendor/myparcelnl/pdk/tests/factories", - "MyParcelNL\\Pdk\\Tests\\": "vendor/myparcelnl/pdk/tests", - "MyParcelNL\\WooCommerce\\": "tests/Unit", - "MyParcelNL\\WooCommerce\\Tests\\": "tests" + "": "tests/factories/", + "MyParcelNL\\Pdk\\": "vendor/myparcelnl/pdk/tests/factories/", + "MyParcelNL\\Pdk\\Tests\\": "vendor/myparcelnl/pdk/tests/", + "MyParcelNL\\WooCommerce\\": "tests/Unit/", + "MyParcelNL\\WooCommerce\\Tests\\": "tests/" }, "files": [ "vendor/myparcelnl/pdk/tests/functions.php", @@ -47,9 +40,17 @@ ] }, "config": { - "prepend-autoloader": false, "allow-plugins": { "pestphp/pest-plugin": true - } + }, + "prepend-autoloader": false + }, + "scripts": { + "analyse": "phpstan analyse --memory-limit=2G", + "analyse:generate": "@analyse --generate-baseline phpstan-baseline.php --allow-empty-baseline", + "analyze": "@analyse", + "analyze:generate": "@analyse:generate", + "test": "vendor/bin/pest", + "test:coverage": "php -dpcov.enabled=1 vendor/bin/pest --coverage-clover=coverage.xml" } } diff --git a/composer.lock b/composer.lock index f9011a081..77998c11d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e101617cc9219947be6ee6f129258617", + "content-hash": "a6ddea8732f3487559b4f04a3e11cc5b", "packages": [ { "name": "guzzlehttp/guzzle", @@ -5509,5 +5509,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" }