{
    "name": "neogrow/neogrow-loyalty",
    "description": "Loyalty points and photo reviews for WooCommerce.",
    "type": "wordpress-plugin",
    "license": "GPL-2.0-or-later",
    "authors": [
        {
            "name": "MT Pamir"
        }
    ],
    "require": {
        "php": ">=7.4"
    },
    "require-dev": {
        "woocommerce/woocommerce-sniffs": "^1.0",
        "php-stubs/woocommerce-stubs": "^9.0",
        "szepeviktor/phpstan-wordpress": "^2.0",
        "phpstan/phpstan": "^2.1",
        "phpstan/extension-installer": "^1.4",
        "phpunit/phpunit": "^9.6",
        "wp-phpunit/wp-phpunit": "^6.6",
        "yoast/phpunit-polyfills": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "NeoGrow\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "NeoGrow\\Tests\\": "tests/phpunit/"
        }
    },
    "config": {
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "phpstan/extension-installer": true
        },
        "sort-packages": true,
        "audit": {
            "ignore": {
                "PKSA-z3gr-8qht-p93v": "CVE-2026-24765, unsafe deserialization in PHPUnit's PHPT code coverage handling. Flagged against every released version with no fixed release available, so it cannot be resolved by upgrading. PHPUnit is a require-dev package and never ships: bin/build.sh and build.ps1 both run composer install --no-dev. This suite uses neither PHPT fixtures nor code coverage, so the affected code path is never reached. Re-evaluate when a patched release exists."
            }
        }
    },
    "scripts": {
        "phpcs": "phpcs",
        "phpcbf": "phpcbf",
        "phpstan": "phpstan analyse --memory-limit=1G",
        "test": "phpunit",
        "lint": [
            "@phpcs",
            "@phpstan"
        ],
        "make-pot": "wp i18n make-pot . languages/neogrow-loyalty.pot --exclude=vendor,node_modules,dist,docs,tests --slug=neogrow-loyalty",
        "build": "bash bin/build.sh"
    },
    "scripts-descriptions": {
        "phpcs": "Check coding standards.",
        "phpcbf": "Auto-fix coding standard violations.",
        "phpstan": "Run static analysis.",
        "test": "Run the PHPUnit suite. Needs a MySQL server and the WP_TESTS_DB_* environment variables; see tests/wp-tests-config.php.",
        "lint": "Run phpcs and phpstan.",
        "make-pot": "Regenerate the translation template.",
        "build": "Build the distributable plugin zip into dist/."
    }
}
